delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/12/20:46:04

Message-Id: <200004130005.UAA00258@delorie.com>
From: "Larry Olin Horn" <hornlo AT millsaps DOT edu>
Organization: Millsaps College - Comp and Telecom
To: djgpp AT delorie DOT com
Date: Wed, 12 Apr 2000 20:05:58 -0500
Subject: Re: timezone problems: tm_isdst not set; strftime("%z") is -0000
In-Reply-To: <38f4e8db.19823033@news.freeserve.net>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> I'm using DJGPP 2.03, but the my zoneinfo files are from 2.02. 
> 
> I don't know how to explain this (unless the cst6cdt file in 2.03 is
> corrupt), but maybe it will help convince Eli that something really is
> going wrong somewhere. 

Steamer, thank you!  That was the clue I needed.

I was using 2.03 zone files.  Switching to 2.02 zone files fixed my problem.  
I did unzip 2.03 and 2.02 on top of each other between tests to see if that 
changed the results and to verify that the zip file itself was ok.

As you suggested, I'll include the results for "israel", "CDT6CDT" and "gb": 

                  TZ=israel                TZ=CST6CDT (and TZ=US/Central)
zoneinfo ver  2.03          2.02              2.03          2.02

tm_isdst      0             1                 0             1
__tm_zone     JMT           IDT               CST           CDT
__tm_gmtoff   8440          10800             -21600        -18000
tzname[n]     JMT / IDT     IST / IDT         CST / CDT     CST / CDT
%z / %Z       +8440 / JMT   +10800 / IDT      -0000 / CST   -0000 / CDT

                  TZ=gb
              0             1
              GMT           BST
              0             3600
              GMT / BST     GMT / BST
              +0000 / GMT   +3600 / BST


-- 
loh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019