[webkit-changes] [WebKit/WebKit] b999ff: [JSC] Add TimeZoneOffset format support to Intl.Da...

Yusuke Suzuki noreply at github.com
Wed Oct 18 20:09:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b999ffe770c9f4ca5e8a4f6e67418f3edfd394fb
      https://github.com/WebKit/WebKit/commit/b999ffe770c9f4ca5e8a4f6e67418f3edfd394fb
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/ISO8601.cpp
    M Source/JavaScriptCore/runtime/ISO8601.h
    M Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp
    M Source/JavaScriptCore/runtime/IntlDateTimeFormat.h

  Log Message:
  -----------
  [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




More information about the webkit-changes mailing list