mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
date: Use an explicit time format string for default option
This is to prepare for removing the time zone from DateTime's default format string. The date utility on most system show time zone by default so let's keep that.
This commit is contained in:
parent
58ed00f633
commit
5ca1c54c27
Notes:
sideshowbarker
2024-07-17 20:05:04 +09:00
Author: https://github.com/trflynn89
Commit: 5ca1c54c27
Pull-request: https://github.com/SerenityOS/serenity/pull/12184
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
} else if (print_rfc_3339) {
|
} else if (print_rfc_3339) {
|
||||||
outln("{}", date.to_string("%Y-%m-%d %H:%M:%S%:z"));
|
outln("{}", date.to_string("%Y-%m-%d %H:%M:%S%:z"));
|
||||||
} else {
|
} else {
|
||||||
outln("{}", date.to_string());
|
outln("{}", date.to_string("%Y-%m-%d %H:%M:%S %Z"));
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue