فهرست منبع

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

Timothy Flynn 3 سال پیش
والد
کامیت
fa016a72fd
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Userland/Services/FileSystemAccessServer/main.cpp

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

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