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
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
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($) {