Skip Menu |

This queue is for tickets about the Data-FormValidator-Constraints-DateTime CPAN distribution.

Report information
The Basics
Id: 57456
Status: resolved
Priority: 0/
Queue: Data-FormValidator-Constraints-DateTime

People
Owner: Nobody in particular
Requestors: iarnell [...] gmail.com
Cc:
AdminCc:

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



Subject: tests fail after 03/03/2010
Tests t/3x_dates.t and t/dates.t fail after 03/03/2010. Both tests have $future_date = '03-03-2010' which is no longer in the future. Fixed for another decade with the attached patch which simply uses '03-03-2020' as future_date instead.
Subject: 03-03-2010.patch
diff -up Data-FormValidator-Constraints-DateTime-1.09/t/3x_dates.t.orig Data-FormValidator-Constraints-DateTime-1.09/t/3x_dates.t --- Data-FormValidator-Constraints-DateTime-1.09/t/3x_dates.t.orig 2005-12-19 23:08:18.000000000 +0100 +++ Data-FormValidator-Constraints-DateTime-1.09/t/3x_dates.t 2010-05-13 12:14:45.000000000 +0200 @@ -15,7 +15,7 @@ my $real_bad_date = '2'; my $today = DateTime->today->mdy('-'); # these are relative to the above $good_date; my $distant_future_date = '03-03-2110'; -my $future_date = '03-03-2010'; +my $future_date = '03-03-2020'; my $past_date = '03-03-1979'; my $distant_past_date = '03-03-1879'; diff -up Data-FormValidator-Constraints-DateTime-1.09/t/dates.t.orig Data-FormValidator-Constraints-DateTime-1.09/t/dates.t --- Data-FormValidator-Constraints-DateTime-1.09/t/dates.t.orig 2005-12-19 23:08:18.000000000 +0100 +++ Data-FormValidator-Constraints-DateTime-1.09/t/dates.t 2010-05-13 12:14:52.000000000 +0200 @@ -21,7 +21,7 @@ my $real_bad_date = '2'; my $today = DateTime->today->mdy('-'); # these are relative to the above $good_date; my $distant_future_date = '03-03-2110'; -my $future_date = '03-03-2010'; +my $future_date = '03-03-2020'; my $past_date = '03-03-1979'; my $distant_past_date = '03-03-1879';
Thanks for the report. This has been fixed in the newly uploaded 1.10 version.