-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Add TimeZoneOffset format support to Intl.DateTimeFormat
https://bugs.webkit.org/show_bug.cgi?id=263315 rdar://117124296 Reviewed by Ross Kirsling. Latest spec adds offset-based timeZone option support for Intl.DateTimeFormat. This patch implements it. The example is, "+03:00" => "GMT+0300". See tc39.es/ecma402/#sec-createdatetimeformat steps 32-33. * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/ISO8601.cpp: (JSC::ISO8601::parseUTCOffsetInMinutes): * Source/JavaScriptCore/runtime/ISO8601.h: * Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp: (JSC::IntlDateTimeFormat::initializeDateTimeFormat): (JSC::IntlDateTimeFormat::createDateIntervalFormatIfNecessary): * Source/JavaScriptCore/runtime/IntlDateTimeFormat.h: Canonical link: https://commits.webkit.org/269497@main
- Loading branch information
1 parent
0fb6b6e
commit b999ffe
Showing
5 changed files
with
141 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters