Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-Local CPAN distribution.

Report information
The Basics
Id: 39209
Status: resolved
Priority: 0/
Queue: Time-Local

People
Owner: Nobody in particular
Requestors: rhonda [...] deb.at
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.07
  • 1.18
Fixed in: 1.19



Subject: the year range 100..999 ends at ..137
Hi! Time::Local has the classic unix timestamp overflow problem - using the year 2038 (138) makes it croak: rhonda@edna:~$ perl -MTime::Local -e 'timelocal(0,0,0,1,1,2038-1900)' Day too big - 24868 > 24853 Cannot handle date (0, 0, 0, 1, 1, 2038) at -e line 1 rhonda@edna:~$ perl -MTime::Local -e 'timelocal(0,0,0,1,1,2037-1900)' rhonda@edna:~$ It would be nice if that could get fixed way ahead of time. ;) Rhonda
This is sort of fixed in the latest release, but if you need something more sane and consistent, check out Time::y2038.
Subject: Re: [rt.cpan.org #39209] the year range 100..999 ends at ..137
Date: Thu, 6 Nov 2008 11:33:36 +0100
To: DROLSKY via RT <bug-Time-Local [...] rt.cpan.org>
From: Gerfried Fuchs <rhonda [...] deb.at>
* DROLSKY via RT <bug-Time-Local@rt.cpan.org> [2008-11-06 03:44:52 CET]: Show quoted text
> This is sort of fixed in the latest release, but if you need something > more sane and consistent, check out Time::y2038.
Thanks for fixing it (haven't tested yet but am taking your word for it). About checking out Time::y2038, that would be an external module and when possible I like to stick with core modules. :) So long! Rhonda
Subject: Re: [rt.cpan.org #39209] the year range 100..999 ends at ..137
Date: Thu, 6 Nov 2008 09:49:39 -0600 (CST)
To: Gerfried Fuchs via RT <bug-Time-Local [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Thu, 6 Nov 2008, Gerfried Fuchs via RT wrote: Show quoted text
> Queue: Time-Local > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=39209 > > > * DROLSKY via RT <bug-Time-Local@rt.cpan.org> [2008-11-06 03:44:52 CET]:
>> This is sort of fixed in the latest release, but if you need something >> more sane and consistent, check out Time::y2038.
> > Thanks for fixing it (haven't tested yet but am taking your word for > it). About checking out Time::y2038, that would be an external module > and when possible I like to stick with core modules. :)
Err, if you're downloading Time::Local from CPAN, it's no longer a core module. Might as well download Time::y2038 from CPAN anyway. But please don't respond to this ticket, as doing so re-opens it. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/