cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_getdate and timezones

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 8 Aug 2005 23:00:10 +0200 (CEST)

On Mon, 8 Aug 2005, Christopher R. Palmer wrote:

> The date parser is actually very nice to have (I was trying to borrow it for
> other purposes). Unfortunately for me, I do really need the timezone
> parsing because dates are written with timezone abbreviations far too
> frequently.
>
> On the other hand, I can see why you wouldn't really want to support the
> hacky list of timezones (are they ever used by any correct web server?).

No. Web servers should send dates in GMT/UTC using one out of three defined
syntaxes. None of those allow any time zone name besides 'GMT' (AFAIR).

> Leaving the parsing broken doesn't sound like a good idea to me. If you
> want, I can send you a patch that will fix the existing list of timezone
> names?

Please do!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-08