-
Notifications
You must be signed in to change notification settings - Fork 18
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
hours: "numeric" w/ 0 in minutes and non 0 in seconds cause strange output. #170
Comments
I think the problem is here
We actually do not need to calculate nextValue since the only usage is compare against 0, we just need a boolean for step c and set that boolean in sub steps of a and b How about
|
The proposed changes in #170 (comment) will add a separator even when the next unit isn't displayed. If we want to return
And change it to:
And then remove step 4.l.ii.5:
If #166 gets accepted, slightly different changes are necessary. |
My understanding is that |
@ben-allen to discuss with @romulocintra and @ryzokuken on who should work on this. |
@anba's tc39/test262#3903 surface the following issue
intl402/DurationFormat/prototype/format/numeric-hour-with-zero-minutes-and-non-zero-seconds.js
What should be the output of
@anba's code, following the spec text produce the expectation as
and currently, the buggy v8 implement 1:03 (which is neither correct)
I think it should be
1:00:03
v8 also incorrectly output
I think it should be
but that is not following the spec text.
We should also consider case like
The text was updated successfully, but these errors were encountered: