mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibJS: Preserve the original time zone identifier in Intl.DateTimeFormat
This was missed when updating the Intl.DateTimeFormat constructor to support Temporal.
This commit is contained in:
Notes:
github-actions[bot]
2026-03-13 18:45:00 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b47e4acc961 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8396
@@ -207,8 +207,8 @@ ThrowCompletionOr<GC::Ref<DateTimeFormat>> create_date_time_format(VM& vm, Funct
|
||||
if (!time_zone_identifier_record.has_value())
|
||||
return vm.throw_completion<RangeError>(ErrorType::OptionIsNotValidValue, time_zone, vm.names.timeZone);
|
||||
|
||||
// c. Set timeZone to timeZoneIdentifierRecord.[[PrimaryIdentifier]].
|
||||
time_zone = time_zone_identifier_record->primary_identifier;
|
||||
// c. Set timeZone to timeZoneIdentifierRecord.[[Identifier]].
|
||||
time_zone = time_zone_identifier_record->identifier;
|
||||
}
|
||||
|
||||
// 21. Set dateTimeFormat.[[TimeZone]] to timeZone.
|
||||
|
||||
Reference in New Issue
Block a user