diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-28 07:33:59 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-28 15:13:35 +0000 |
commit | 6838333f764a54bae6fe48a1048f8dc65347f8cb (patch) | |
tree | c281327c8a98d8b9d1d720c70ef1f11f7e696ad7 /Userland | |
parent | 899f062673f5bc77bf9ec307c7b4d742326af37d (diff) | |
download | serenity-6838333f764a54bae6fe48a1048f8dc65347f8cb.zip |
LibMain: Invoke tzset in LibMain so all apps can have time zone info
Rather than finding apps that benefit from time zone awareness one-by-
one, and calling tzset in their serenity_main, let's do it in LibMain.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibMain/Main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibMain/Main.cpp b/Userland/Libraries/LibMain/Main.cpp index 8c535ccd0d..67eea7ca50 100644 --- a/Userland/Libraries/LibMain/Main.cpp +++ b/Userland/Libraries/LibMain/Main.cpp @@ -9,9 +9,12 @@ #include <AK/Vector.h> #include <LibMain/Main.h> #include <string.h> +#include <time.h> int main(int argc, char** argv) { + tzset(); + Vector<StringView> arguments; arguments.ensure_capacity(argc); for (int i = 0; i < argc; ++i) |