File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Windows SBS 2008 and timezone (DST) problem in Europe/Berlin
Joined: May 17, 2010
May 17, 2010 04:20:08
I'm facing a timezone / daylight saving time problem:
The time given from the JVM has an offset of -1 hour. It seems it is the additional hour from the DST.
Operating system: Windows SBS 2008 Standard FE.
Timezone: (GMT+01:00) Amsterdam, Berlin, ...
Java HotSpot Client 16.3-b01
System time: 09:00
Java time: 08:00
I compared the system properties from this server with my laptop and recognized one difference:
When setting the user timezone explicit with -Duser.timezone=Europe/Berlin the problem is gone. So it seems the problem is a broken mapping from system timezone to java timezone.
Any ideas how to fix that?
The workaround to set the timezone explicit is not possible because there are many java based applications on this machine and I can't change the java call for all.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Windows SBS 2008 and timezone (DST) problem in Europe/Berlin
Problem with Date and Time
timezone on HP-UX.
day light saving
To extract the timezone from the system
Force JVM default TimeZone on Windows start/login
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015