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