Skip Menu |

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

Report information
The Basics
Id: 44691
Status: resolved
Priority: 0/
Queue: DateTime-Format-Natural

People
Owner: Nobody in particular
Requestors: jason.a.may [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.75_03
Fixed in: (no value)



Subject: DTFN dies on any month with less than 30 days if it's the 31st
Since today is March 31, I found out that if I try to use DTFN to parse for any date that's in a month with less than 31 days, it dies. Examples: Show quoted text
dateparse> march 3
03.03.2009 04:32:22 Show quoted text
dateparse> april 3
Invalid day of month (day = 31 - month = 4 - year = 2009) at /usr/local/share/perl/5.10.0/DateTime/Format/Natural/Base.pm line 964 Show quoted text
dateparse> may 3
03.05.2009 04:32:31 Show quoted text
dateparse> june 3
Invalid day of month (day = 31 - month = 6 - year = 2009) at /usr/local/share/perl/5.10.0/DateTime/Format/Natural/Base.pm line 964 Show quoted text
dateparse> july 3
03.07.2009 04:32:39 Show quoted text
dateparse> august 3
03.08.2009 04:32:43 Show quoted text
dateparse> september 3
Invalid day of month (day = 31 - month = 9 - year = 2009) at /usr/local/share/perl/5.10.0/DateTime/Format/Natural/Base.pm line 964 Best, Jason
This appears to be a regression and should be fixed as of v0.75_04.