Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 3843
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: rmathews [...] citysearch.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.1702
Fixed in: 0.1703



Subject: truncate to week dies
Truncate to week fails if the beginning of the week occurs in a different month. Here's an example script. use DateTime; my $dt = DateTime->new(year => 2003, month => 10, day => 2); $dt->truncate(to => "week"); This produces the following error: The 'day' parameter to DateTime::new did not pass the 'is between 1 and 31' callback System details: DateTime 0.1702 perl 5.8.0 redhat 9
I'm releasing 0.1703 to fix this. Thanks for the report.