# New Ticket Created by Zefram # Please include the string: [perl #127003] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127003 >
DateTime.new on a Str input, per ISO 8601:2004 clause 4.2.2.4, attempts to accept either comma or full stop as the decimal point in the seconds part, but it screws up the comma case, failing to convert it to a numeric value. > DateTime.new("2000-01-01T00:00:00.0").perl DateTime.new(:year(2000), :month(1), :day(1), :hour(0), :minute(0), :second(0.0)) > DateTime.new("2000-01-01T00:00:00,0").perl Cannot convert string to number: trailing characters after number in '00^,0' (indicated by ^) in block <unit> at <unknown file>:1 -zefram