Re: Four patches for LWP (and comments)

Gisle Aas (aas@oslonett.no)
Wed, 09 Aug 1995 11:29:25 +0200


> > "Wed, 09 Feb 1994 22:23:32 GMT"       -- proposed HTTP format
> > "Thu Feb  3 17:03:55 GMT 1994"        -- ctime format
> > "Tuesday, 08-Feb-94 14:15:29 GMT"     -- old rfc850 HTTP format
> > "Tuesday, 08-Feb-1994 14:15:29 GMT"   -- broken rfc850 HTTP format
> 
> Hmmmm, that reminds me -- it should also handle the ASCII C format
> 
>   "Thu Feb  3 17:03:55 1994"    (same as ctime, except no TZ)

Enabled by this patch:

--- Date.pm     1995/07/17 10:01:05     1.6
+++ Date.pm     1995/08/09 09:18:46     1.7
@@ -139,7 +139,7 @@
         $mn    = shift(@w);
         $day   = shift(@w);
         $atime = shift(@w);
-        shift(@w);
+        shift(@w) if @w > 1;
         $yr    = shift(@w);
     }
     elsif ($w[0] =~ m#/#) 

--
Gisle Aas                               <aas@oslonett.no>
Oslonett AS                             http://www.oslonett.no/home/aas/