Closed Bug 1512309 Opened 1 year ago Closed 1 year ago
Month dropdown shows '01 - December' ... '12 - November'
Bug 1512309 - Set the month of the date object through the Date constructor instead of the UTC time. r?MattN
47 bytes, text/x-phabricator-request
|Details | Review|
No description provided.
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 email@example.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
You need to log in before you can comment on or make changes to this bug.