mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
LibJS: Do not override the timeZoneName option in Intl.DateTimeFormat
This is an editorial change in the Temporal proposal. See: https://github.com/tc39/proposal-temporal/commit/d76d11b
This commit is contained in:
committed by
Andreas Kling
parent
ea67f37348
commit
313c050a61
Notes:
github-actions[bot]
2025-01-17 09:09:26 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/313c050a610 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3275
@@ -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
|
||||
*/
|
||||
@@ -389,8 +389,8 @@ Optional<Unicode::CalendarPattern> get_date_time_format(Unicode::CalendarPattern
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
||||
// c. If defaults is ZONED-DATE-TIME, then
|
||||
if (defaults == OptionDefaults::ZonedDateTime) {
|
||||
// c. If defaults is ZONED-DATE-TIME and formatOptions.[[timeZoneName]] is undefined, then
|
||||
if (defaults == OptionDefaults::ZonedDateTime && !format_options.time_zone_name.has_value()) {
|
||||
// i. Set formatOptions.[[timeZoneName]] to "short".
|
||||
format_options.time_zone_name = Unicode::CalendarPatternStyle::Short;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user