[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
Mon Sep 16 04:56:29 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=160287

radio at alx.pt changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |radio at alx.pt

--- Comment #3 from radio at alx.pt ---
This seems to still be an issue.  

I connected the Safari inspector from my computer to an iPhone running iOS 12.4, then opened a console:

> new Date("2019-11-26T23:59:59-0800")
< Invalid Date
> new Date("2019-11-26T23:59:59-08:00")
< Wed Nov 27 2019 07:59:59 GMT+0000 (WET)

Per the ISO 8601 spec, it seems that a time zone offset of "-0800" should be acceptable.  But mobile Safari is only accepting "-08:00".


https://en.wikipedia.org/wiki/ISO_8601#Times

-- 
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/20190916/fcf8f60a/attachment.html>


More information about the webkit-unassigned mailing list