LibJS+LibUnicode: Port retrieving the system time zone to ICU

This commit is contained in:
Timothy Flynn
2024-06-24 10:17:32 -04:00
committed by Andreas Kling
parent 89aa9a3af0
commit d3e809bcd4
16 changed files with 115 additions and 16 deletions

View File

@@ -197,7 +197,7 @@ ThrowCompletionOr<NonnullGCPtr<DateTimeFormat>> create_date_time_format(VM& vm,
// 30. If timeZone is undefined, then
if (time_zone_value.is_undefined()) {
// a. Set timeZone to DefaultTimeZone().
time_zone = MUST(String::from_utf8(system_time_zone_identifier()));
time_zone = system_time_zone_identifier();
}
// 31. Else,
else {