LibJS+LibLocale: Replace preferred hour cycle lookups with ICU

This commit is contained in:
Timothy Flynn
2024-06-12 16:16:49 -04:00
committed by Andreas Kling
parent e2bffe5612
commit 9cb1857dc6
6 changed files with 33 additions and 124 deletions

View File

@@ -189,7 +189,7 @@ ThrowCompletionOr<NonnullGCPtr<DateTimeFormat>> create_date_time_format(VM& vm,
// c. If hc is null, set hc to dataLocaleData.[[hourCycle]].
if (!hour_cycle_value.has_value())
hour_cycle_value = ::Locale::get_default_regional_hour_cycle(data_locale);
hour_cycle_value = ::Locale::default_hour_cycle(data_locale);
}
// 28. Set dateTimeFormat.[[HourCycle]] to hc.