[Webkit-unassigned] [Bug 160287] Error "Invalid date" if you parse ISO8601 date without a colon between hour and minute of timezone
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 21 22:47:25 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=160287
--- Comment #7 from Yusuke Suzuki <ysuzuki at apple.com> ---
(In reply to radio from comment #3)
> https://en.wikipedia.org/wiki/ISO_8601#Times
https://tc39.es/ecma262/#sec-date-time-string-format
It seems that ":" in timezone is necessary according to the spec.
> Z is the UTC offset representation specified as "Z" (for UTC with no offset) or an offset of either "+" or "-" followed by a time expression HH:mm (indicating local time ahead of or behind UTC, respectively)
And looks like ECMA262's format is simplified version of ISO-8601.
> ECMAScript defines a string interchange format for date-times based upon a simplification of the ISO 8601 calendar date extended format. The format is as follows: YYYY-MM-DDTHH:mm:ss.sssZ
@Ross, do you know why are ECMA262 and ISO-8601 different? Is there any reasons?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200122/4c8150b3/attachment.htm>
More information about the webkit-unassigned
mailing list