From 0c13a3a8ff07a7dde8acc30ede885685c224ef64 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 27 Jan 2022 17:42:49 -0500 Subject: [PATCH] ls: Display times in the user's local time zone ls is already using local time, but needs tzset() for that to actually work. --- Userland/Utilities/ls.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Utilities/ls.cpp b/Userland/Utilities/ls.cpp index 4fe2289ce0..c240f6ed08 100644 --- a/Userland/Utilities/ls.cpp +++ b/Userland/Utilities/ls.cpp @@ -77,6 +77,7 @@ static bool is_a_tty = false; ErrorOr serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio rpath tty")); + tzset(); struct winsize ws; int rc = ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws);