DescriptionFix check for a date with a 24th hour
According to the ECMA spec, a 24th hour is allowed if the minutes, seconds, and milliseconds are all zero (i.e. it's midnight). Previously, we parsed the date correctly, however, we failed to account in all checks for the possibility of a 24th hour. This CL changes the check to allow a 24th hour if it's exactly midnight.
BUG=chromium:174609
LOG=Y
Committed: https://crrev.com/ea056cbf2d338f95fe40381c7adf0133df5ed3c9
Cr-Commit-Position: refs/heads/master@{#29816}
Patch Set 1 #Patch Set 2 : Change to unbreak tests #Patch Set 3 : Fix presubmit errors #Patch Set 4 : Add tests #Patch Set 5 : Fix testcases #
Total comments: 2
Patch Set 6 : Invert if #Messages
Total messages: 11 (3 generated)
|