On Thu Jul 10 12:15:09 2008, dougbitcard wrote:
Show quoted text> APR::Date::parse_rfc does not accept a date of the form:
>
> Wed, 14 Nov 2007 17:03 -0800
>
> (Note that there are no seconds on the time)
>
> This is RFC822 compliant:
> hour = 2DIGIT ":" 2DIGIT [":" 2DIGIT]
>
> And it is RFC2822 compliant:
> time-of-day = hour ":" minute [ ":" second ]
>
> Apparently, APR::Date will work with a date specification that does not
> include seconds, but only if the year is only 2 digits.
>
> My report is based on observed behavior in 2.0.2, but also on the
> latest documentation. This is on a linux FC6 system if that matters.
Thanks for the report. I can confirm this is still a problem with 2.0.7,
built against Apache 2.2.22.
However, the limitation lies in the underlying APR (actually, APR-util)
function, apr_date_parse_rfc(), which APR::Date::parse_rfc() is simply a
wrapper onto.
The problem should therefore be reported on
https://issues.apache.org/bugzilla/ instead. If and when a new version
of APR-util incorporating an improvement in this regard is released then
mod_perl's wrapper onto it will pick it up with no changes required here.
(The limitation is still present in the latest release of APR-util, 1.5.1.)