delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/12/17:33:24

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: timezone problems: tm_isdst not set; strftime("%z") is -0000
Date: Wed, 12 Apr 2000 21:21:56 GMT
Organization: always disorganized
Lines: 28
Message-ID: <38f4e8db.19823033@news.freeserve.net>
References: <200004120924 DOT FAA07789 AT delorie DOT com> <200004121610 DOT MAA01705 AT delorie DOT com>
NNTP-Posting-Host: modem-149.bursa-trigger.dialup.pol.co.uk
X-Trace: news8.svr.pol.co.uk 955574517 28696 62.136.244.149 (12 Apr 2000 21:21:57 GMT)
NNTP-Posting-Date: 12 Apr 2000 21:21:57 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Larry Olin Horn wrote:

>So?  The actual time zone is mis-identified, whether it's displayed as "CST", 
>"Central Standard Time", "-0600", or "UTC less six hours", because that's not 
>the time zone I'm in.  The time indicated is off by an hour from actual local 
>time.

I've just tried using cst6cdt and I do get the correct things:

  tm_isdst    = 1 (** should be 1 **)
  __tm_zone   = CDT (** should be CDT **)
  __tm_gmtoff = -18000 (** should be -18000 **)

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.

To help deduce the cause of the problem why not try a few more tests, e.g.:
What do you get if you set TZ=israel like Eli (strangely, I get
  tm_isdst = 1, __tm_zone = IDT, __tm_gmtoff = 10800).
What do you get if you set TZ=gb like me (you should get
  tm_isdst = 1, __tm_zone = BST, __tm_gmtoff = 3600).
This should make it clear whether you simply have a duff cst6cdt file, or
whether it's a more general problem.

S.

- Raw text -


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