delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/12/12:00:45

Date: Wed, 12 Apr 2000 17:29:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Larry Olin Horn <hornlo AT millsaps DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: timezone problems: tm_isdst not set; strftime("%z") is -0000
In-Reply-To: <200004120924.FAA07789@delorie.com>
Message-ID: <Pine.SUN.3.91.1000412172515.18962E-100000@is>
MIME-Version: 1.0
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

On Wed, 12 Apr 2000, Larry Olin Horn wrote:

> > I cannot reproduce the first problem.  Please always make a point of
> 
> Transcript with output and source code at end of this message.

Thanks, I will look into that.

> > >   %a, %d %b %Y %H:%M:%S %Z --> Tue, 11 Apr 2000 09:50:47 CST
> >
> > I don't see any problem with this behavior.  If you think there is a
> > problem, please explain what it is.
> 
> Wrong time zone (CST instead of CDT)

No, it's not wrong.  The name printed by %Z is not documented to be 
identical to the TZ setting, or any part thereof.  It is simply a
string that identifies the time zone in some arbitrary way.

For example, I have a setting "TZ=israel", but %Z prints "JST" (for 
"Jerusalem Standard Time").

- Raw text -


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