mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05: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
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) {
|
||||
outln("{}", date.to_string("%Y-%m-%d %H:%M:%S%:z"));
|
||||
} else {
|
||||
outln("{}", date.to_string());
|
||||
outln("{}", date.to_string("%Y-%m-%d %H:%M:%S %Z"));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue