Skip Menu |

This queue is for tickets about the HTTP-Cookies CPAN distribution.

Report information
The Basics
Id: 124527
Status: resolved
Priority: 0/
Queue: HTTP-Cookies

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

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



Subject: dates misinterpreted after 2020
Similar to https://rt.cpan.org/Public/Bug/Display.html?id=124514 https://rt.cpan.org/Public/Bug/Display.html?id=124526 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 patch below (not tested) =================================================================== --- HTTP-Cookies-6.04.orig/lib/HTTP/Cookies.pm +++ HTTP-Cookies-6.04/lib/HTTP/Cookies.pm @@ -17 +17 @@ if ($^O eq "MacOS") { - $EPOCH_OFFSET = Time::Local::timelocal(0,0,0,1,0,70); + $EPOCH_OFFSET = Time::Local::timegm(0,0,0,1,0,1970);
On Thu Feb 22 01:05:15 2018, bmwiedemann wrote: Show quoted text
> Similar to > https://rt.cpan.org/Public/Bug/Display.html?id=124514 > https://rt.cpan.org/Public/Bug/Display.html?id=124526 > > 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 patch below (not tested) > > =================================================================== > --- HTTP-Cookies-6.04.orig/lib/HTTP/Cookies.pm > +++ HTTP-Cookies-6.04/lib/HTTP/Cookies.pm > @@ -17 +17 @@ if ($^O eq "MacOS") { > - $EPOCH_OFFSET = Time::Local::timelocal(0,0,0,1,0,70); > + $EPOCH_OFFSET = Time::Local::timegm(0,0,0,1,0,1970);
Thanks! Patch will be applied via https://github.com/libwww-perl/http-cookies/pull/52