Open
Bug 1925180
Opened 2 years ago
Updated 4 months ago
Date created with zeros for months and days returns November 30th
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
UNCONFIRMED
People
(Reporter: xmedeko, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
In JavaScript do: "" + new Date('2024-00-00')
Actual results:
"Thu Nov 30 2023 00:00:00"
See it's, November!
Expected results:
It's should be 'Invalid Date' - same as in Chromium.
(Maybe something like Jan 1 2024 would be acceptable, too.)
Updated•2 years ago
|
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Updated•2 years ago
|
Blocks: sm-date-parse
Updated•2 years ago
|
Severity: -- → S4
Priority: -- → P3
Summary: Date created with zeros for moths and days returns November 30th → Date created with zeros for months and days returns November 30th
You need to log in
before you can comment on or make changes to this bug.
Description
•