-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
One would not expect different behaviours from the following snippets:
$ perl -MDateTime -e'
CORE::say
DateTime
->new(
year => 2012,
month => 6,
day => 30,
hour => 23,
minute => 59,
second => 60,
time_zone => "UTC",
)
->set_time_zone("floating");
'
2012-06-30T23:59:60
$ perl -MDateTime -e'
CORE::say
DateTime
->new(
year => 2012,
month => 6,
day => 30,
hour => 23,
minute => 59,
second => 60,
time_zone => "floating",
);
'
Invalid second value (60)
at -e line 1.
This inconsistency causes DateTime::Format::Strptime to fail.
Metadata
Metadata
Assignees
Labels
No labels