mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibJS: Do not override the timeZoneName option in Intl.DateTimeFormat
This is an editorial change in the Temporal proposal. See:
d76d11b
This commit is contained in:
parent
ea67f37348
commit
313c050a61
Notes:
github-actions[bot]
2025-01-17 09:09:26 +00:00
Author: https://github.com/trflynn89
Commit: 313c050a61
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3275
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021-2024, Tim Flynn <trflynn89@ladybird.org>
|
* Copyright (c) 2021-2025, Tim Flynn <trflynn89@ladybird.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -389,8 +389,8 @@ Optional<Unicode::CalendarPattern> get_date_time_format(Unicode::CalendarPattern
|
||||||
return IterationDecision::Continue;
|
return IterationDecision::Continue;
|
||||||
});
|
});
|
||||||
|
|
||||||
// c. If defaults is ZONED-DATE-TIME, then
|
// c. If defaults is ZONED-DATE-TIME and formatOptions.[[timeZoneName]] is undefined, then
|
||||||
if (defaults == OptionDefaults::ZonedDateTime) {
|
if (defaults == OptionDefaults::ZonedDateTime && !format_options.time_zone_name.has_value()) {
|
||||||
// i. Set formatOptions.[[timeZoneName]] to "short".
|
// i. Set formatOptions.[[timeZoneName]] to "short".
|
||||||
format_options.time_zone_name = Unicode::CalendarPatternStyle::Short;
|
format_options.time_zone_name = Unicode::CalendarPatternStyle::Short;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue