Skip Menu |

This queue is for tickets about the DateTime-Format-CLDR CPAN distribution.

Report information
The Basics
Id: 53849
Status: resolved
Priority: 0/
Queue: DateTime-Format-CLDR

People
Owner: Nobody in particular
Requestors: ozum [...] ozum.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.09
Fixed in: (no value)



Subject: Returns 1 instead of undef
Hello, The code below try to parse invalid date and should return undef according to document, but returns 1. When I change on_error => 'croak' it works fine. Regards, Note: Jan 3, 10 is Sunday. use DateTime; use DateTime::Format::CLDR; my $cldr = DateTime::Format::CLDR->new( on_error => 'undef', locale => 'en', pattern => 'MMM d, yy eeee'); my $dt = $cldr->parse_datetime( 'Jan 3, 10 Friday' ); print "Should be undef: $dt \n";
Hello, thank you for reporting this bug. This issue has been resolved in DT::F::CLDR 1.10 Cheers Maros