Skip Menu |

This queue is for tickets about the DateTimeX-Web CPAN distribution.

Report information
The Basics
Id: 131324
Status: resolved
Priority: 0/
Queue: DateTimeX-Web

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.08
Fixed in: (no value)



Subject: Validation for day_of_year parameter fails (today?)
t/basic.t fails: ... The 'day_of_year' parameter ("0") to DateTime::from_day_of_year did not pass the 'is between 1 and 366' callback: at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/amd64-freebsd-ld/DateTime.pm line 680. DateTime::from_day_of_year(undef, "time_zone", DateTime::TimeZone::UTC=HASH(0x41d00378), "year", 120, "locale", DateTime::Locale::en_US=HASH(0x434e4cf0), "day_of_year", 0, ...) called at /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08-tmWK5l/blib/lib/DateTimeX/Web.pm line 109 eval {...} called at /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08-tmWK5l/blib/lib/DateTimeX/Web.pm line 109 DateTimeX::Web::__ANON__(DateTimeX::Web=HASH(0x41d00f00), "year", 120, "day_of_year", 0) called at t/basic.t line 44 at /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08-tmWK5l/blib/lib/DateTimeX/Web.pm line 110. DateTimeX::Web::__ANON__(DateTimeX::Web=HASH(0x41d00f00), "year", 120, "day_of_year", 0) called at t/basic.t line 44 # Looks like your test exited with 255 just after 6. t/basic.t ........ Dubious, test returned 255 (wstat 65280, 0xff00) All 6 subtests passed ... Today is 2020-01-01 --- maybe this is a special date, yielding day_of_year=0?
On Thu Jan 02 03:27:51 2020, SREZIC wrote: Show quoted text
> t/basic.t fails: > > ... > The 'day_of_year' parameter ("0") to DateTime::from_day_of_year did > not pass the 'is between 1 and 366' callback: > at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/amd64-freebsd- > ld/DateTime.pm line 680. > DateTime::from_day_of_year(undef, "time_zone", > DateTime::TimeZone::UTC=HASH(0x41d00378), "year", 120, "locale", > DateTime::Locale::en_US=HASH(0x434e4cf0), "day_of_year", 0, ...) > called at /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08- > tmWK5l/blib/lib/DateTimeX/Web.pm line 109 > eval {...} called at > /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08- > tmWK5l/blib/lib/DateTimeX/Web.pm line 109 > DateTimeX::Web::__ANON__(DateTimeX::Web=HASH(0x41d00f00), > "year", 120, "day_of_year", 0) called at t/basic.t line 44 > at /home/cpansand/.cpan/build/2020010119/DateTimeX-Web-0.08- > tmWK5l/blib/lib/DateTimeX/Web.pm line 110. > DateTimeX::Web::__ANON__(DateTimeX::Web=HASH(0x41d00f00), > "year", 120, "day_of_year", 0) called at t/basic.t line 44 > # Looks like your test exited with 255 just after 6. > t/basic.t ........ > Dubious, test returned 255 (wstat 65280, 0xff00) > All 6 subtests passed > ... > > Today is 2020-01-01 --- maybe this is a special date, yielding > day_of_year=0?
Thank you (and wish you a happy new year)! Shipped 0.09.