Closed Bug 1528592 Opened 6 years ago Closed 6 years ago

Date Object not working in Firefox developer console as expected

Categories

(DevTools :: Console, defect)

Unspecified
All
defect
Not set
normal

Tracking

(firefox65 affected, firefox66 affected, firefox67 affected)

RESOLVED DUPLICATE of bug 1073533
Tracking Status
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.

Status: UNCONFIRMED → NEW
Component: Untriaged → Console
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → DevTools
Version: 66 Branch → Trunk
Attached image New Date.PNG (deleted) —

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.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: