From 5ca1c54c27dcf7517cb7d5774f7674cfc52ad8c1 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 28 Jan 2022 11:26:01 -0500 Subject: [PATCH] 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. --- Userland/Utilities/date.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/date.cpp b/Userland/Utilities/date.cpp index bf23092de9..4fc23b578b 100644 --- a/Userland/Utilities/date.cpp +++ b/Userland/Utilities/date.cpp @@ -60,7 +60,7 @@ ErrorOr 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; }