mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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
Notes:
sideshowbarker
2024-07-17 20:15:15 +09:00
Author: https://github.com/trflynn89
Commit: a027ccad75
Pull-request: https://github.com/SerenityOS/serenity/pull/12119
Reviewed-by: https://github.com/linusg ✅
5 changed files with 11 additions and 4 deletions
|
@ -32,7 +32,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
if (time_zone.is_empty()) {
|
||||
outln("{}", TimeZone::current_time_zone());
|
||||
outln("{}", TimeZone::system_time_zone());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue