[Webkit-unassigned] [Bug 241103] New: Date() Constructor not working when using '/' in the Date

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 30 11:03:41 PDT 2022


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

            Bug ID: 241103
           Summary: Date() Constructor not working when using '/' in the
                    Date
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: luis.aguilera at oracle.com

When using the constructor Date() in Javascript, with a date that has backslashes on it, the Date the constructor returns "Invalid Date".

For example:

new Date("17/AUG/1996")

Returns "Invalid Date"

new Date("17-AUG-1996")

Returns a valid date.

-- 
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/20220530/ddc40121/attachment-0001.htm>


More information about the webkit-unassigned mailing list