Skip to content

Conversation

ben-allen
Copy link
Contributor

Description

Update valid values for timeZone parameter of Intl.DateTimeFormat to reflect that conforming implementations of ECMA-402 must be time zone aware. Also include examples of valid UTC offset time zones.

Motivation

tc39/ecma402#788 updates Intl.DateTimeFormat to allow the use of UTC offset time zones.

Additional details

The previous language about implementations only being required to recognize the time zone "UTC" only apply to implementations of ECMA-262 without ECMA-402. ECMA-402 implementations must be time zone aware.

Related issues and pull requests

@ben-allen ben-allen requested a review from a team as a code owner April 30, 2024 22:47
@ben-allen ben-allen requested review from Josh-Cena and removed request for a team April 30, 2024 22:47
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Apr 30, 2024
Copy link
Contributor

github-actions bot commented Apr 30, 2024

Preview URLs

External URLs (1)

URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
Title: Intl.DateTimeFormat() constructor

(comment last updated: 2024-04-30 23:37:18)

@ben-allen ben-allen force-pushed the intl-datetimeformat-utc-offsets branch from 05f5052 to db03728 Compare April 30, 2024 23:25
…lect current requirements for conforming ECMA-402 implementations"
@ben-allen ben-allen force-pushed the intl-datetimeformat-utc-offsets branch from db03728 to e43ca38 Compare April 30, 2024 23:27
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@Josh-Cena Josh-Cena merged commit 6c0434c into mdn:main Apr 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants