[Seaside] Parsing HTTP dates

Philippe Marschall philippe.marschall at gmail.com
Thu May 10 18:52:48 UTC 2012


On Thu, May 10, 2012 at 3:56 PM, Sean P. DeNigris <sean at clipperadams.com> wrote:
> In HTTP/1.1, valid dates come in 3 forms (per
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1) :
>  Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123
>  Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
>  Sun Nov  6 08:49:37 1994       ; ANSI C's asctime() format
>
> All 3 fail in Pharo 1.4 with #asDateAndTime.
>
> It'd be easy enough to write a parser for them, but it seems so common... I
> searched google and the seaside lists but found no mention of "date parse
> HTTP".

Feel free to submit a bug … and code … and tests ;-)

Cheers
Philippe


More information about the seaside mailing list