From 82509ca0c84c9eefe4f684a0fc7989f49bbfcf1a Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 25 Jan 2022 16:09:51 -0500 Subject: [PATCH] date: Display time zone information in all output formats --- Userland/Utilities/date.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Utilities/date.cpp b/Userland/Utilities/date.cpp index 28ae833449..0b91921622 100644 --- a/Userland/Utilities/date.cpp +++ b/Userland/Utilities/date.cpp @@ -56,11 +56,11 @@ ErrorOr serenity_main(Main::Arguments arguments) if (print_unix_date) { outln("{}", date.timestamp()); } else if (print_iso_8601) { - outln("{}", date.to_string("%Y-%m-%dT%H:%M:%S-00:00")); + outln("{}", date.to_string("%Y-%m-%dT%H:%M:%S%:z")); } else if (print_rfc_5322) { - outln("{}", date.to_string("%a, %d %b %Y %H:%M:%S -0000")); + outln("{}", date.to_string("%a, %d %b %Y %H:%M:%S %z")); } else if (print_rfc_3339) { - outln("{}", date.to_string("%Y-%m-%d %H:%M:%S-00:00")); + outln("{}", date.to_string("%Y-%m-%d %H:%M:%S%:z")); } else { outln("{}", date.to_string()); }