Message-Id: <200004111359.JAA06219@delorie.com> From: "Larry Olin Horn" Organization: Millsaps College - Comp and Telecom To: djgpp AT delorie DOT com Date: Tue, 11 Apr 2000 09:58:59 -0500 Subject: timezone problems: tm_isdst not set; strftime("%z") is -0000 X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp AT delorie DOT com version: DJGPP 2.03 on Win98SE environment: TZ=CST6CDT (also tried with c:/djgpp/zoneinfo/CDT6CDT) problems: tm_isdst is not set correctly strftime "%z" (lowercase "z") shows -0000 offset ("%Z", upcase, shows "CDT") demo: Dumping tm_ptr: tm_sec = 47 tm_min = 50 tm_hour = 9 tm_mday = 11 tm_mon = 3 tm_year = 100 tm_wday = 2 tm_yday = 101 tm_isdst = 0 __tm_zone = CST __tm_gmtoff = -21600 Dumping tzname: tzname[0] = CST tzname[1] = CDT asctime = Tue Apr 11 09:50:47 2000 strtime: %a, %d %b %Y %H:%M:%S %z --> Tue, 11 Apr 2000 09:50:47 -0000 %a, %d %b %Y %H:%M:%S %Z --> Tue, 11 Apr 2000 09:50:47 CST --