-
Notifications
You must be signed in to change notification settings - Fork 157
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
Calendar formatter #660
Calendar formatter #660
Conversation
Since MonthDay.withYear(year) is not guaranteed to be sufficient to convert to a Temporal.Date if the calendar uses eras as well as years. Instead of picking the arbitrary day 1 or year 2004 to convert, use the refISODay or refISOYear, respectively.
Codecov Report
@@ Coverage Diff @@
## main #660 +/- ##
===========================================
- Coverage 95.99% 53.19% -42.80%
===========================================
Files 17 16 -1
Lines 4040 1912 -2128
Branches 663 489 -174
===========================================
- Hits 3878 1017 -2861
- Misses 159 756 +597
- Partials 3 139 +136
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment. Apart from that, it LGTM.
polyfill/lib/intl.mjs
Outdated
console.log(aa.getEpochMilliseconds(), bb.getEpochMilliseconds()); | ||
console.log(formatter.resolvedOptions()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed these
31f3d7b
to
1e1416f
Compare
Actually, scratch this — both these commits depend on the |
I split this out from #638, for ease of review, because it's able to be merged separately.