summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-27 17:43:42 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-28 12:25:20 +0000
commit080b054695f03df2f731d9a519432e3f196f48e6 (patch)
tree9b6f00cf730caee856990e278569b099c79251e0 /Userland/Applications/FileManager
parent0c13a3a8ff07a7dde8acc30ede885685c224ef64 (diff)
downloadserenity-080b054695f03df2f731d9a519432e3f196f48e6.zip
FileManager: Display times in the user's local time zone
Diffstat (limited to 'Userland/Applications/FileManager')
-rw-r--r--Userland/Applications/FileManager/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index 41f6ee5fbe..ea8519f94f 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -50,6 +50,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/wait.h>
+#include <time.h>
#include <unistd.h>
using namespace FileManager;
@@ -87,6 +88,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath fattr proc exec unix"));
+ tzset();
Config::pledge_domains({ "FileManager", "WindowManager" });
Config::monitor_domain("FileManager");