Re: Daylight savings problem

From: Illya Kysil (ikysil_at_nospam.ua)
Date: 10/20/03


Date: Mon, 20 Oct 2003 17:58:06 +0300

Hello, Svante!
You wrote on Mon, 20 Oct 2003 08:22:34 GMT:

 SNA> If I uncheck the box "Automatically adjust clock for daylight saving
 SNA> changes" the time in my Java program is one hour ahead, as presented by
 SNA> Date.toString for example, of the time presented in Windows XP. Further the
 SNA> useDaylightSavings method of the default TimeZone (as returned by
 SNA> TimeZone.getDefault()) always returns true, no matter if the win xp
 SNA> "daylight saving" box is checked or not. I've tried setting XP up for both
 SNA> the Stockholm time zone (gmt +1:00) and Central Time (GMT -6:00)

 SNA> ...

TimeZone.useDaylightSavings = true if a time zone have daylight saving time range specified.
You should call TimeZone.inDaylightTime to know whether it is active for a given date.

Regards
Illya Kysil, software developer
Delphi/C/C++/C#/Java/Forth/Assembler
If it is NOT SOURCE, it is NOT SOFTWARE. (C) NASA