# New Ticket Created by  Zefram 
# Please include the string:  [perl #127002]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127002 >


The documentation for DateTime.new says that when given a string input
the string is to be in ISO 8601 format, and that an exception will be
thrown when it is given an invalid string input.  In fact it accepts
some non ISO 8601 strings:

    "2000-01-01T00:00:00+0000"  (mixed basic and extended representations)
    "2000-01-01T00:00:00-00"    (wrong sign for zero timezone)
    "2000-01-0\x[666]T00:00:00" (non-ASCII digit)

The first two failures are specific to the timezone portion of the string.
Non-ASCII digits are accepted in all digit positions.

-zefram

Reply via email to