1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:07:46 +00:00
serenity/Userland
Timothy Flynn c3fd4554a6 LibTimeZone: Do not use tzname to determine the current time zone
The tzname array stores the abbreviated names of the current time zone
when in standard and daylight time. These abbreviations are ambiguous;
a single abbreviation often maps to multiple time zones. For example,
EST is used by America/New_York and America/Detroit, and CST could be
the abbreviation of Central Standard Time or China Standard Time.

Instead, we mimic a subset of how both ICU and Howard Hinnant's "date"
library determines the current time zone. First, we try to parse the TZ
environment variable. If that fails, or isn't set, we try to resolve the
/etc/localtime symbolic link. On most Linux systems and on macOS, this
is a link to the current TZDB file in use.

If all of the above fails, we fall back to UTC.
2022-09-28 23:52:51 +01:00
..
Applets Applets/ResourceGraph: Port to Core::Stream 2022-09-18 18:57:28 -07:00
Applications PixelPaint: Use the parallel ImageProcessor to apply filters 2022-09-27 14:23:11 +01:00
Demos Everywhere: Fix order of includes and #pragma once 2022-09-18 18:30:05 -07:00
DevTools SQLStudio: Save and load blank files without failing assertion 2022-09-27 14:38:50 +01:00
DynamicLoader LibPthread: Implement named semaphores 2022-07-21 16:39:22 +02:00
Games MasterWord: Port to Core::Stream 2022-09-20 07:48:45 -04:00
Libraries LibTimeZone: Do not use tzname to determine the current time zone 2022-09-28 23:52:51 +01:00
Services LibCore: Propagate errors from LibCore::Account::login() 2022-09-27 21:29:44 +01:00
Shell Shell: Fix 'Command:' output for built-in 'time' command 2022-09-16 05:38:09 +00:00
Utilities less: Show correct line number 2022-09-28 09:42:40 +01:00
CMakeLists.txt Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00