Closed Bug 1413505 Opened 7 years ago Closed 6 years ago

Apply TimeClip in intl_FormatDateTime and intl_FormatToPartsDateTime

Categories

(Core :: JavaScript: Internationalization API, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox58 --- wontfix
firefox59 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(1 file)

Priority: -- → P3
Attached patch bug1413505.patchSplinter Review
Adds the call to TimeClip per the spec PR. I've also moved the invalid-date check into js::intl_FormatDateTime to remove a bit of code duplication and because it looks cleaner to me to pass |ClippedTime| instead of |double| values to intl_Format[ToParts]DateTime(...). 

All test262 from <https://github.com/tc39/test262/pull/1340> pass with the proposed changes.
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8935356 - Flags: review?(gandalf)
Attachment #8935356 - Flags: review?(gandalf) → review+
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/071076af815d
Apply TimeClip in Intl.DateTimeFormat format methods. r=gandalf
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/071076af815d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: