Closed Bug 1512309 Opened 5 years ago Closed 5 years ago

Month dropdown shows '01 - December' ... '12 - November'

Categories

(Toolkit :: Form Autofill, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: jaws, Assigned: jaws)

Details

(Whiteboard: [webpayments] [mozlando-demo-bug])

Attachments

(1 file)

      No description provided.
Priority: -- → P1
The UTC time was generating incorrect months when the browser was used in a timezone that has a negative UTC offset. The value returned from Date.UTC was then parsed by new Date() which was converted to the local timezone. Date.UTC(1970, 0, 1) would return a time of 0 which would then become December 1969.
Whiteboard: [webpayments] → [webpayments] [mozlando-demo-bug]
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9317931c9ce1
Set the month of the date object through the Date constructor instead of the UTC time. r=MattN
https://hg.mozilla.org/mozilla-central/rev/9317931c9ce1
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: