LibTimeZone: Remove AK_OS_SERENITY ifdef

Remove special case for SerenityOS as fallback will still work.
This commit is contained in:
Nathan E. Egge 2024-06-05 21:18:44 -04:00 committed by Tim Flynn
parent d83ab035ee
commit b040e5c12b
Notes: sideshowbarker 2024-07-17 06:45:52 +09:00

View File

@ -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)