mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 02:49:29 +03:00
0d58e75910
Since tzset() itself pretends to succeed (it just sets timezone = 0 for now), it seems unwise to leave tzname uninitialized. Since Serenity already assumes UTC pretty much everywhere time is used, let's continue that trend here. Quoting POSIX: https://pubs.opengroup.org/onlinepubs/009695399/functions/tzset.html The tzset() function shall use the value of the environment variable TZ to set time conversion information used by ctime(), localtime(), mktime(), and strftime(). If TZ is absent from the environment, implementation-defined default timezone information shall be used. So we still don't care about TZ at all, but the program doesn't need to know! :^) This matches what musl libc ("UTC") and glibc ("GMT") do, see: - https://sourceware.org/git/?p=glibc.git;a=blob;f=time/tzset.c - https://git.musl-libc.org/cgit/musl/tree/src/time/__tz.c |
||
---|---|---|
.. | ||
Applications | ||
Demos | ||
DevTools | ||
DynamicLoader | ||
Games | ||
Libraries | ||
MenuApplets | ||
Services | ||
Shell | ||
Tests | ||
Utilities | ||
CMakeLists.txt |