1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

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.
This commit is contained in:
Timothy Flynn 2022-01-28 07:33:59 -05:00 committed by Linus Groh
parent 899f062673
commit 6838333f76
Notes: sideshowbarker 2024-07-17 20:06:37 +09:00

View file

@ -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)