Browse Source

FileSystemAccessServer: Display times in the user's local time zone

Timothy Flynn 3 years ago
parent
commit
fa016a72fd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Services/FileSystemAccessServer/main.cpp

+ 2 - 0
Userland/Services/FileSystemAccessServer/main.cpp

@@ -9,10 +9,12 @@
 #include <LibGUI/Application.h>
 #include <LibIPC/SingleServer.h>
 #include <LibMain/Main.h>
+#include <time.h>
 
 ErrorOr<int> serenity_main(Main::Arguments)
 {
     TRY(Core::System::pledge("stdio recvfd sendfd rpath cpath wpath unix thread"));
+    tzset();
 
     auto app = GUI::Application::construct(0, nullptr);
     app->set_quit_when_last_window_deleted(false);