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:
Timothy Flynn 2022-01-28 11:26:01 -05:00 committed by Linus Groh
parent 58ed00f633
commit 5ca1c54c27

View file

@ -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;
}