mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibTimeZone: Remove AK_OS_SERENITY ifdef
Remove special case for SerenityOS as fallback will still work.
This commit is contained in:
parent
d83ab035ee
commit
b040e5c12b
Notes:
sideshowbarker
2024-07-17 06:45:52 +09:00
Author: https://github.com/negge Commit: https://github.com/LadybirdBrowser/ladybird/commit/b040e5c12b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/72 Issue: https://github.com/LadybirdBrowser/ladybird/issues/65
@ -103,9 +103,6 @@ StringView current_time_zone()
|
||||
return "UTC"sv;
|
||||
}
|
||||
|
||||
#ifdef AK_OS_SERENITY
|
||||
return system_time_zone();
|
||||
#else
|
||||
static constexpr auto zoneinfo = "/zoneinfo"sv;
|
||||
|
||||
char* real_path = realpath("/etc/localtime", nullptr);
|
||||
@ -131,7 +128,6 @@ StringView current_time_zone()
|
||||
|
||||
// Read the system timezone file /etc/timezone
|
||||
return system_time_zone();
|
||||
#endif
|
||||
}
|
||||
|
||||
ErrorOr<void> change_time_zone([[maybe_unused]] StringView time_zone)
|
||||
|
Loading…
Reference in New Issue
Block a user