浏览代码

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

Timothy Flynn 3 年之前
父节点
当前提交
080b054695
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Applications/FileManager/main.cpp

+ 2 - 0
Userland/Applications/FileManager/main.cpp

@@ -50,6 +50,7 @@
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
+#include <time.h>
 #include <unistd.h>
 #include <unistd.h>
 
 
 using namespace FileManager;
 using namespace FileManager;
@@ -87,6 +88,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     auto app = TRY(GUI::Application::try_create(arguments));
     auto app = TRY(GUI::Application::try_create(arguments));
 
 
     TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath fattr proc exec unix"));
     TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath fattr proc exec unix"));
+    tzset();
 
 
     Config::pledge_domains({ "FileManager", "WindowManager" });
     Config::pledge_domains({ "FileManager", "WindowManager" });
     Config::monitor_domain("FileManager");
     Config::monitor_domain("FileManager");