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
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 559b
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;


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.