Re: [PATCH] libwww 5.48 HTTP::Date

Gisle Aas (gisle@activestate.com)
17 Aug 2000 10:42:43 +0200


Sander van Zoest <sander@covalent.net> writes:

> I was using the HTTP::Date package to parse dates in MIME Messages and
> seem to run into a format that wasn't supported. So I figured I would
> e-mail you a patch for hopeful inclusion in the next release.
> 
> The format I am talking about is the following:
> 	Tue, 1 Aug 2000 11:50:28 -0700 (PDT)
> 	Wed, 2 Aug 2000 11:49:58 -0500 (CDT)
> 	Wed, 2 Aug 2000 19:17:48 +0200 (CEST)
> 
> Notice how the timezone info is duplicated with an abbreviation on
> top of the numerical format. Most other MIME messages use simply
> 	Wed, 2 Aug 2000 19:17:48 +0200
> 
> Let me know what you think,

Applied.  Thanks!

> *** libwww-perl-5.48/lib/HTTP/Date.pm	Mon Feb 14 07:37:48 2000
> --- HTTP/Date.pm.new	Sat Aug 12 21:24:55 2000
> ***************
> *** 105,110 ****
> --- 105,112 ----
>   	 )?                    # optional clock
>   	    \s*
>   	 ([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
> + 	    \s*
> + 	 (\(\w+\))?	       # ASCII representation of timezone in parens.
          ^
I added a :? here.

>   	    \s*$
>   	/x)
>   
>