Status

()

Core
JavaScript: Standard Library
2 years ago
a year ago

People

(Reporter: Dron Rathore, Unassigned)

Tracking

(Blocks: 1 bug)

44 Branch
All
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Steps to reproduce:

Currently the only format that Date constructor takes is : yyyy-mm-dd and all other are just "Invalid Date"

new Date("dd-mm-yyyy")
new Date("yyyy-dd-mm")
new Date("mm-dd-yyyy")


Actual results:

Above all throws "Invalid Date" error.


Expected results:

Well I tried the same in Chrome and they just worked! As there is no as such universal format that everyone "should" use in the WebApps they build, we should extend support of other Date formats too.
(Reporter)

Updated

2 years ago
Component: Untriaged → General
OS: Unspecified → Mac OS X
Hardware: Unspecified → All

Updated

2 years ago
Component: General → JavaScript Engine
Product: Firefox → Core
Blocks: 1274354
Component: JavaScript Engine → JavaScript: Standard Library
You need to log in before you can comment on or make changes to this bug.