Date Parsing odd behavior with strings
Reported by
ajdrau...@gmail.com,
Dec 18 2017
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
Steps to reproduce the problem:
1. open console
2. Evaluate : new Date("Century is the unit of time that equals a hundred years 1") or Evaluate: new Date("Daily is the unit of time that equals a day 1")
What is the expected behavior?
This should not parse. "Invalid Date" should be thrown
What went wrong?
Date parsed when keyword Century or Daily is used with random text in the middle and a valid integer at the end.
Did this work before? No
Chrome version: 63.0.3239.84 Channel: stable
OS Version: 10.0
Flash Version:
Edge and Firefox handle this correctly.
,
Dec 19 2017
,
Dec 19 2017
,
Jan 2 2018
,
Jan 2
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 7
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by sc00335...@techmahindra.com
, Dec 19 2017Labels: Triaged-ET M-65 Needs-Milestone OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
74.5 KB
74.5 KB View Download