Subject: | 12:XX PM does not work |
# This doesn't work for me:
use DateTime::Format::Natural;
my $df = DateTime::Format::Natural->new;
my $dt = $df->parse_datetime('12:14 PM');
warn $dt->hms; # outputs the current time rather than 12:14:00
# But this does:
my $dt2 = $df->parse_datetime('1:14 PM');
warn $dt2->hms; # outputs the 13:14:00
I want to track this down, but I'm in a hurry in the moment. If I can
track it down, I will add to the report later, hopefully with a patch.
Cheers.