Skip Menu |
 

This queue is for tickets about the Date-Business CPAN distribution.

Report information
The Basics
Id: 124549
Status: new
Priority: 0/
Queue: Date-Business

People
Owner: Nobody in particular
Requestors: bitcardbmw [...] lsmod.de
Cc:
AdminCc:

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



Subject: timegm should be called with 4-digit year
Download (untitled) / with headers
text/plain 201b
man Time::Local says Whenever possible, use an absolute four digit year instead. With a detailed explanation about ambiguity of 2-digit years above that. Please review/test/merge the attached patch
Subject: fix.patch
Download fix.patch
text/x-diff 389b
Index: Date-Business-1.2/Business.pm =================================================================== --- Date-Business-1.2.orig/Business.pm +++ Date-Business-1.2/Business.pm @@ -93,7 +93,7 @@ sub image2value($;$) { my($image) = @_; $image =~ m/(....)(..)(..)/; - return timegm(0, 0, 0, $3, ($2-1), $1 - 1900); + return timegm(0, 0, 0, $3, ($2-1), $1); } sub value($) {


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.