diff --git a/Userland/Libraries/LibTimeZone/TimeZone.cpp b/Userland/Libraries/LibTimeZone/TimeZone.cpp index 251f84c11c..ba2d4eb154 100644 --- a/Userland/Libraries/LibTimeZone/TimeZone.cpp +++ b/Userland/Libraries/LibTimeZone/TimeZone.cpp @@ -28,7 +28,7 @@ StringView current_time_zone() tzset(); } - return tzname[0]; + return canonicalize_time_zone(tzname[0]).value_or("UTC"sv); } Optional __attribute__((weak)) time_zone_from_string([[maybe_unused]] StringView time_zone)