mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibTimeZone+Userland: Rename current_time_zone to system_time_zone
This renames the current implementation of current_time_zone to system_time_zone to more clearly indicate what it is. Then reimplements current_time_zone to return whatever was set up by tzset, falling back to UTC if something went awry, for convenience.
This commit is contained in:
parent
ede5c9548e
commit
a027ccad75
5 changed files with 11 additions and 4 deletions
|
@ -372,7 +372,7 @@ void tzset()
|
|||
if (char* tz = getenv("TZ"); tz != nullptr)
|
||||
time_zone = tz;
|
||||
else
|
||||
time_zone = TimeZone::current_time_zone();
|
||||
time_zone = TimeZone::system_time_zone();
|
||||
|
||||
auto set_default_values = []() {
|
||||
timezone = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue