1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:47:34 +00:00

LibTimeZone: Use /etc/timezone as the basis for the system time zone

This changes LibTimeZone to read the current time zone from the file
/etc/timezone rather than using tzset/tzname. Instead, in a subsequent
commit, LibC's time methods will be changed to used LibTimeZone to
retrieve the system time zone.

Also add an API to set the system time zone. This method is only allowed
when running within Serenity.
This commit is contained in:
Timothy Flynn 2022-01-20 11:55:48 -05:00 committed by Linus Groh
parent bcf4ec9c61
commit 7f1404b870
3 changed files with 75 additions and 8 deletions

1
Base/etc/timezone Normal file
View file

@ -0,0 +1 @@
UTC