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

Editorial: Refactor offset string formatting #2632

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

justingrant
Copy link
Collaborator

Simplify offset formatting by using FormatTimeString instead of bespoke formatting logic for offsets. This commit completes the time-formatting refactor that #2629 started, and that I promised @gibson042 that I'd complete after #2574 and #2607 were merged.

This PR is stacked on #2622, so please review only the top commit.

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #2632 (b3aea71) into main (6834487) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2632      +/-   ##
==========================================
- Coverage   95.94%   95.94%   -0.01%     
==========================================
  Files          20       20              
  Lines       11550    11542       -8     
  Branches     2197     2193       -4     
==========================================
- Hits        11082    11074       -8     
  Misses        404      404              
  Partials       64       64              
Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 98.21% <100.00%> (-0.01%) ⬇️

Copy link
Collaborator

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

I really like the separation of arithmetic from serialization!

spec/timezone.html Show resolved Hide resolved
spec/abstractops.html Outdated Show resolved Hide resolved
spec/abstractops.html Outdated Show resolved Hide resolved
@justingrant justingrant force-pushed the refeactor-offset-formatting branch 7 times, most recently from 89a8d8e to 15f95fb Compare July 19, 2023 01:16
@justingrant
Copy link
Collaborator Author

OK, all review comments are addressed. PTAL. Thanks!

spec/abstractops.html Outdated Show resolved Hide resolved
spec/abstractops.html Outdated Show resolved Hide resolved
spec/abstractops.html Outdated Show resolved Hide resolved
@justingrant justingrant force-pushed the refeactor-offset-formatting branch 2 times, most recently from 6ca3b36 to 30b2304 Compare July 19, 2023 04:22
Simplify offset formatting by using FormatTimeString instead of bespoke
formatting logic. This commit completes the time-formatting refactor that
tc39#2629 started.
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