-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve time zone identifier docs #2492
Conversation
justingrant
commented
Jan 29, 2023
- Adds a new section about time zone identifiers
- Adds new section to explain TZ identifier canonicalization
- Clarifies how identifiers and canonicalization work for custom TZs
- Various minor improvements related to IDs and canonicalization
Codecov Report
@@ Coverage Diff @@
## main #2492 +/- ##
=======================================
Coverage 96.05% 96.05%
=======================================
Files 20 20
Lines 11594 11594
Branches 2193 2193
=======================================
Hits 11137 11137
Misses 393 393
Partials 64 64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'd like to merge this at the same time as #2482.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justingrant Sorry for letting this one go for so long. I had intended to merge it along with #2482, but I forgot about it. Unfortunately, not having done so meant that it didn't get updated when the time zone canonicalization proposal reached stage 3. I've tried to mark all the places where I think it needs to be updated, would you mind checking if I got it right?
c81fe4f
to
efbc554
Compare
In any set of equivalent identifiers, only one identifier will be considered canonical. | ||
To avoid redundancy, only canonical identifiers are returned by `Intl.supportedValuesOf('timeZone')`. | ||
Furthermore, only canonical identifiers are output methods that returns the system's current time zone, such as `Temporal.Now.timeZoneId()`. | ||
Other than those few cases, canonicalization is not observable in ECMAScript code, which ensures that changes to the IANA Time Zone Database will have minimal impact on the behavior of existing applications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't believe how much work it took to be able to write that sentence! 😄
efbc554
to
32914b7
Compare
* Adds a new section about time zone identifiers * Various minor improvements related to IDs * Minor wordsmithing throughout the TimeZone docs
32914b7
to
eb1a72c
Compare
Content is rebased and all comments are resolved. @ptomato, want to take another look? Thanks! |
That's another one off the list, thanks! |