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

Fix getOffsetStringFor docs for sub-minute offsets #2674

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

justingrant
Copy link
Collaborator

Fixes #2673 to clarify that sub-minute time zone offsets will be output by Temporal.TimeZone.prototype.getOffsetStringFor when the offset isn't aligned on a minute boundary.

Note that sub-minute offsets are only allowed for IANA and custom zones, and are disallowed for offset time zones per #2607.

@justingrant justingrant added documentation Additions to documentation no-spec-text PR can be ignored by implementors labels Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ec1eca8) 96.22% compared to head (5c328bb) 96.22%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2674   +/-   ##
=======================================
  Coverage   96.22%   96.22%           
=======================================
  Files          20       20           
  Lines       11984    11984           
  Branches     2227     2227           
=======================================
  Hits        11532    11532           
  Misses        389      389           
  Partials       63       63           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Yep, you beat me to it! Thanks.

@ptomato ptomato merged commit 684f60d into main Sep 14, 2023
9 checks passed
@ptomato ptomato deleted the justingrant-patch-1 branch September 14, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Additions to documentation no-spec-text PR can be ignored by implementors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doc vs polyfill mismatch for timeZone.getOffsetStringFor(), expected string should not show seconds.
2 participants