Date Object not working in Firefox developer console as expected
Categories
(DevTools :: Console, defect)
Tracking
(firefox65 affected, firefox66 affected, firefox67 affected)
People
(Reporter: venkateswaraTolla, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
new Date(2019, 11,1); execute in Developer console
Actual results:
Date 2019-11-30T18:30:00.000Z
Expected results:
Date 2019-11-01T18:30:00.000Z
Hi reporter,
Thank you for taking the time to add this report.
I was able to observe a similar discrepancy, namely in the input date and the expected result, as the months got incremented by 1. I'll attach a screenshot. This behavior was noticed across all the latest Firefox versions and OS-es (Windows 10, Mac OSX and Linux 18.04).
I'm going to add this to DevTools: Console component for a more advised opinion.
Comment 3•6 years ago
|
||
Thanks for filing this bug. It looks like Bug 1073533, so I'm setting it as duplicate.
I'll try to prioritize this so it gets fixed soon.
Description
•