Skip Menu |
 

This queue is for tickets about the File-Listing CPAN distribution.

Report information
The Basics
Id: 124528
Status: new
Priority: 0/
Queue: File-Listing

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

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



Subject: timelocal should be called with 4-digit year
Download (untitled) / with headers
text/plain 609b
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 (not tested) Index: File-Listing-6.04/lib/File/Listing.pm =================================================================== --- File-Listing-6.04.orig/lib/File/Listing.pm +++ File-Listing-6.04/lib/File/Listing.pm @@ -332 +332 @@ sub line { - my $filetime = Time::Local::timelocal(0,$M,$H,$d,$m-1,_guess_year($y)-1900); + my $filetime = Time::Local::timelocal(0,$M,$H,$d,$m-1,_guess_year($y));


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.