Skip Menu |
 

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id: 124512
Status: resolved
Priority: 0/
Queue: Archive-Zip

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

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



Subject: dates misinterpreted after 2030
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-4739-1519215014-1346.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 653
Download (untitled) / with headers
text/plain 653b
similar to https://rt.cpan.org/Public/Bug/Display.html?id=124508 Two-digit years are interpreted depending on current year. This trivial patch fixed it for me: Index: Archive-Zip-1.60/lib/Archive/Zip/Member.pm =================================================================== --- Archive-Zip-1.60.orig/lib/Archive/Zip/Member.pm +++ Archive-Zip-1.60/lib/Archive/Zip/Member.pm @@ -633,7 +633,7 @@ sub _dosToUnixTime { my $dt = shift; return time() unless defined($dt); - my $year = (($dt >> 25) & 0x7f) + 80; + my $year = (($dt >> 25) & 0x7f) + 1980; my $mon = (($dt >> 21) & 0x0f) - 1; my $mday = (($dt >> 16) & 0x1f);
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-4739-1519215014-1346.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-4739-1519215014-1346.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-7574-1536767431-377.124512-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 21
Thanks, fixed in 1.64


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.