Closed
Bug 1512309
Opened 5 years ago
Closed 5 years ago
Month dropdown shows '01 - December' ... '12 - November'
Categories
(Toolkit :: Form Autofill, enhancement, P1)
Toolkit
Form Autofill
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.
Assignee | ||
Updated•5 years ago
|
Priority: -- → P1
Assignee | ||
Comment 1•5 years ago
|
||
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.
Assignee | ||
Updated•5 years ago
|
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
Comment 3•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9317931c9ce1
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•