Skip to content
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

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Improve time zone identifier docs #2492

merged 1 commit into from
Aug 11, 2023

Conversation

justingrant
Copy link
Collaborator

  • 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
Copy link

codecov bot commented Jan 29, 2023

Codecov Report

Merging #2492 (eb1a72c) into main (38f3f0f) will not change coverage.
The diff coverage is n/a.

@@           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           

Copy link
Collaborator

@ptomato ptomato left a 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.

docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@ptomato ptomato left a 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?

docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
docs/timezone.md Outdated Show resolved Hide resolved
@justingrant justingrant force-pushed the docs-custom-time-zone-ids branch 2 times, most recently from c81fe4f to efbc554 Compare August 11, 2023 21:46
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.
Copy link
Collaborator Author

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! 😄

* Adds a new section about time zone identifiers
* Various minor improvements related to IDs
* Minor wordsmithing throughout the TimeZone docs
@justingrant
Copy link
Collaborator Author

Content is rebased and all comments are resolved. @ptomato, want to take another look? Thanks!

@ptomato ptomato merged commit d07ff43 into main Aug 11, 2023
9 checks passed
@ptomato ptomato deleted the docs-custom-time-zone-ids branch August 11, 2023 23:14
@ptomato
Copy link
Collaborator

ptomato commented Aug 11, 2023

That's another one off the list, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants