ladybird/Userland
Linus Groh 0d58e75910 LibC: Make tzset() set tzname to { "UTC", "UTC" }
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
2021-01-18 22:28:56 +01:00
..
Applications AudioServer+LibAudio: Pass audio buffers as Core::AnonymousBuffer 2021-01-17 09:07:32 +01:00
Demos LibGfx: Make Painter take the scale factor as constructor argument 2021-01-17 16:10:21 +01:00
DevTools Kernel+Userland: Remove shared buffers (shbufs) 2021-01-17 09:07:32 +01:00
DynamicLoader Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Games Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
Libraries LibC: Make tzset() set tzname to { "UTC", "UTC" } 2021-01-18 22:28:56 +01:00
MenuApplets Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd" 2021-01-16 19:30:32 +01:00
Services LibGfx: Make Painter take the scale factor as constructor argument 2021-01-17 16:10:21 +01:00
Shell Shell: Allow newlines between else and if's closing brace 2021-01-18 08:56:34 +01:00
Tests LibC: Test behavior around overlong paths 2021-01-16 22:40:53 +01:00
Utilities Everywhere: Remove more <AK/SharedBuffer.h> includes 2021-01-17 00:04:42 +01:00
CMakeLists.txt Services: Move to Userland/Services/ 2021-01-12 12:23:01 +01:00