Skip Menu |

This queue is for tickets about the CAM-PDF CPAN distribution.

Report information
The Basics
Id: 124550
Status: new
Priority: 0/
Queue: CAM-PDF

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

Bug Information
Severity: Normal
Broken in: 1.60
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: CAM-PDF-1.60/bin/pdfinfo.pl =================================================================== --- CAM-PDF-1.60.orig/bin/pdfinfo.pl +++ CAM-PDF-1.60/bin/pdfinfo.pl @@ -88,7 +88,7 @@ while (@ARGV > 0) $sign = q{+}; } require Time::Local; - my $timegm = Time::Local::timegm($s,$m,$h,$D,$M-1,$Y-1900); + my $timegm = Time::Local::timegm($s,$m,$h,$D,$M-1,$Y); my $tzshift = $sign . ($tzh*3600 + $tzm*60); $timegm += $tzshift; $val = localtime $timegm;