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:
parent
899f062673
commit
6838333f76
Notes:
sideshowbarker
2024-07-17 20:06:37 +09:00
Author: https://github.com/trflynn89
Commit: 6838333f76
Pull-request: https://github.com/SerenityOS/serenity/pull/12177
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue