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

Bugfix: Display negative sign on leading numeric-style zeroes #207

Merged

Conversation

ben-allen
Copy link
Collaborator

Bugfix: FormatNumericUnits previously incorrectly dropped the negative sign when:

  • A negative duration is being formatted
  • The first displayed unit is a "numeric" or "2-digit" hour or minute value
  • The value of that hour or minute is 0

This adds tests for these conditions to FormatNumericUnits.

fixes #204

@ben-allen
Copy link
Collaborator Author

I'm tentatively thinking this is a bugfix rather than a normative change, though I've requested time on the plenary agenda in case others tell me it's normative. thoughts? @ryzokuken @gibson042

@ben-allen
Copy link
Collaborator Author

Achieved consensus at July 2024 plenary

@ben-allen ben-allen added consensus We reached a consensus in a discussion meeting, through email or the issue discussion normative labels Aug 7, 2024
@ben-allen ben-allen merged commit adfc4a1 into tc39:main Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus We reached a consensus in a discussion meeting, through email or the issue discussion needs-test normative
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How does the negative sign from negative sub-hour values with digital display appear in the final result?
1 participant