Re: [PATCH] Y2K Problem with HTTP::Date (libwww-5.42)

Gisle Aas (gisle@aas.no)
01 May 1999 12:03:41 +0200


byron@omix.com (Byron Brummer) writes:

> Gisle Aas <gisle@aas.no> wrote:
> 	>snip<
> > sub str2time ($;$)
> 	>snip<
> >     # timelocal() seems to go into an infinite loop if it is given out of
> >     # range parameters.
> 
> 	What systems/versions does timelocal() do this?  Under 5.00502 on
> 	FreeBSD it returns -1 on integer overflow, as documented.  Does it
> 	not do this everywhere and/or does it have problems on older Perl
> 	versions?

That stuff entered HTTP:Date in May 1996 based on this bug report:

  http://www.ics.uci.edu/pub/websoft/libwww-perl/archive/1996h1/0295.html

It seems like the perl5.002's timegm() was bad.  It is probably safe
to take this out now, since current LWP require 5.004 or better.

Regards,
Gisle