Add DateTimeFormat timeZone option accepting UTC offset#29563
Open
isemanjski wants to merge 1 commit intomdn:mainfrom
Open
Add DateTimeFormat timeZone option accepting UTC offset#29563isemanjski wants to merge 1 commit intomdn:mainfrom
DateTimeFormat timeZone option accepting UTC offset#29563isemanjski wants to merge 1 commit intomdn:mainfrom
Conversation
Contributor
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
DateTimeFormat timeZone option accepting UTC offset
caugner
approved these changes
Apr 30, 2026
| } | ||
| } | ||
| }, | ||
| "utc_offset": { |
Contributor
There was a problem hiding this comment.
Nit: Prefix with accepts_.
Suggested change
| "utc_offset": { | |
| "accepts_utc_offset": { |
| }, | ||
| "utc_offset": { | ||
| "__compat": { | ||
| "description": "UTC offset in `options.timeZone` option", |
Contributor
There was a problem hiding this comment.
Nit: Avoid duplication.
Suggested change
| "description": "UTC offset in `options.timeZone` option", | |
| "description": "UTC offset in `timeZone` option", |
Contributor
|
This PR is excellent with the screenshots providing evidence for when this shipped. @semanjski Please have a look at the failing lint check when you have a moment. 🙏 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add missing compatibility information for using a UTC offset string (for example,
"+01:00") as thetimeZoneoption ofIntl.DateTimeFormat.Example:
This behavior was standardized in ECMA-402 11th Edition (June 2024).
Supporting details
This feature is not consistently documented in browser or runtime release notes, so version history was determined using a combination of public sources and manual verification.
Confirmed implementation references:
https://bugzilla.mozilla.org/show_bug.cgi?id=1856291
https://developer.apple.com/documentation/safari-release-notes/safari-17_4-release-notes
https://chromium.googlesource.com/chromium/src/+/052b9f3d67f02c7f5127d2b3257b9764363784c5
Verification performed
Browser versions (desktop browsers) were manually tested using BrowserStack. JavaScript runtimes were verified locally.
Browser verification
Chrome 119 (suppor missing)

Chrome 120 (support added)

Edge 119 (support missing)

Edge 120 (support added)

Firefox 120 (support missing)

Firefox 121 (support added)

Opera 105 (support missing)

Opera 106 (support added)

Safari 17.3 (support missing)

Safari 18.4 (support added)

Note: There is no 17.4 version available in BrowserStack so I used next one available, but release notes from Safari 17.4 are enough.
Runtime verification
Bun 1.0.18 (support missing) / Bun 1.0.19 (support added)

Deno 1.37 (support missing) / Bun 1.38 (support added)

Node.js 21.7.3 (support missing) / Node.js 22.0.0 (support added)
