www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/13/09:32:39

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: DST switching off too soon
13 Oct 1998 09:32:39 -0700 :
Message-ID: <19981012180544.64079.cygnus.gnu-win32@cygnus.com>
References: <010101bdf2ca$147b9180$3565a8c0 AT dolphin DOT chromatic DOT com>
Mime-Version: 1.0
To: Heinz-Jrgen Oertel <oe AT port DOT de>
Cc: "Peter A. Vogel" <pvogel AT chromatic DOT com>, gnu-win32 AT cygnus DOT com

On Thu, Oct 08, 1998 at 06:01:49PM +0200, Heinz-Jrgen Oertel wrote:
[...]
> did you consider  your time zone info ?
> at my box windows says
> 	17:41
> bash(cyg-win32)
> 	907861277
>         Thu Oct 8 16:41:18 1998
> my linux bash:
> 	907861208
> 	Thursday 08 of October 17:40:08 CEST 1998 KW 40
> 
> LINUX knows my time zone info - CEST
> cyg-win bash doesn't.
> 
> i gave it:
> 	date +%s;date
> as you can see, the seconds are the same.
> no idea where the time zone info must be stored,
> somewhere at /etc/..... ?

I looked into this briefly.  Although the code is complex enough
that I probably have missed a bug or two in Cygwin, it looks like
the relevant piece of code is localtime() in winsup/times.cc.
We're calling GetTimeZoneInformation and then using DaylightDate
and StandardDate as reported by MS to do the calculations.
NT knows the correct time, so it probably is our fault somewhere.

Fortunately, this bug will fix itself in a couple of weeks.  :-)

A patch would be welcomed.  I'm in the midst of tracking down more
serious problems...

-- 
Geoffrey Noer
noer AT cygnus DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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