WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
70008
Date.toLocaleString should probably report invalid dates as such.
https://bugs.webkit.org/show_bug.cgi?id=70008
Summary
Date.toLocaleString should probably report invalid dates as such.
Gavin Barraclough
Reported
2011-10-13 01:48:19 PDT
The provided URL reports true in FireFox, we should probably match this behavior since it makes more sense (though this is spec'ed to be implementation dependent, so our current behavior isn't technically wrong).
Attachments
Add attachment
proposed patch, testcase, etc.
Vineet Chaudhary (vineetc)
Comment 1
2011-10-13 02:00:08 PDT
I tested this on chrome-linux and webkit-gtk. It returns Invalid date ie. result as true. Am I missing something here.
Gavin Barraclough
Comment 2
2011-10-13 12:22:44 PDT
This is a JSC bug; chrome uses v8.
Andy VanWagoner
Comment 3
2018-12-24 14:53:21 PST
This appears to be working correctly now. Please reopen with additional details if there is still a case where an invalid date object does not return "Invalid Date" from toLocaleString.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug