cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_getdate and timezones

From: Christopher R. Palmer <crpalmer_at_vivisimo.com>
Date: Thu, 04 Aug 2005 15:21:48 -0400

Looking at the parsedate.c code in curl 7.14.0 I notice that it has a table
of timezone offsets and that these offsets seem to define the daylight and
non-daylight savings times as the same offset from GMT. For example:

   {"PST", 480}, /* Pacific Standard */
   {"PDT", 480}, /* Pacific Daylight */

Is that intentional? Do you remember why it is done like that? This is
not the behaviour of the GNU date command which returns different times for
different daylight/non-daylight timezones:

$ date --date 'Sun, 31 Jul 2005 16:10:58 PDT' +%s
1122851458
$ date --date 'Sun, 31 Jul 2005 16:10:58 PST' +%s
1122855058

Thanks,
Chris.
Received on 2005-08-04