Allow UTC offset time zones for the "timeZone" option for Intl.DateTimeFormat
Categories
(Core :: JavaScript: Internationalization API, enhancement, P3)
Tracking
()
People
(Reporter: anba, Assigned: anba)
References
Details
Attachments
(2 files)
Implement the time zone option changes from https://github.com/tc39/ecma402/issues/683.
Support for system time zones in the time zone offset string format will be added later.
| Assignee | ||
Comment 1•2 years ago
|
||
Add a workaround for https://unicode-org.atlassian.net/browse/ICU-22526.
Depends on D189743
| Assignee | ||
Comment 2•2 years ago
|
||
The new self-hosted function TimeZoneOffsetString combines three different
abstract operations, because it's more efficient to parse, validate, and
normalise time zone offset strings in one go. Self-hosted code is currently
restricted to use only Latin-1 permanent atoms, so we can't use the string
literal "\u2212". As a workaround all character accesses and comparisons are
done through character-codes.
When passing time zone offset strings to ICU, the offset must be first changed
into the custom time zone format supported by ICU, which means the offset must
be prepended by the string "GMT".
Depends on D189744
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d482557db536
https://hg.mozilla.org/mozilla-central/rev/6e473b5825d2
Updated•2 years ago
|
Description
•