wood burning stoves 2.0*
The moose likes Java in General and the fly likes Force JVM default TimeZone on Windows start/login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Force JVM default TimeZone on Windows start/login" Watch "Force JVM default TimeZone on Windows start/login" New topic
Author

Force JVM default TimeZone on Windows start/login

Maurice Le Chat
Greenhorn

Joined: Jan 20, 2009
Posts: 18
Environment:
Windows XP SP3 OS TimeZone setting GMT+1 + Summertime i.e. Amsterdam, Berlin, Bern, etc.
JVM's SUN 1.6.0_14 and IBM 1.6.0

Fact:
TimeZone.getDefault() returns "GMT"
of course after TimeZone.setDefault("Europe/Zurich"), getDefault returns "Europe/Zurich" as expected. But this is not the point!

Problem:
subversion check-in times from eclipse are adjusted from local time to GMT, i.e. 2 hours earlier 8:00 insted of 10:00!
Calendar entries within the eclipse base Notes Client 8.5 shows meetings and appointments with a 2 hours shift. i.e. 6:00 instad of 8:00!

Eclipse IDE ist configured to use the SUN JDK, while Notes use it's own IBM Version.

It's probabely a windows - JMV issue, as XP is running for 5 years now without reinstalling. Must life with it until next new computer!

In the mean time I search a hint to force The TimeZone setting, - not within my own prgrams, that is easy, - but for the eclipse based ones or in general on startup or login to have the times set and displayed correct!

Any body any hint?

Thanks in advance!

Maurice


SCJP 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Force JVM default TimeZone on Windows start/login
 
Similar Threads
Calendar() / Date() bug ???
Windows SBS 2008 and timezone (DST) problem in Europe/Berlin
To extract the timezone from the system
Question about using a specific TimeZone to set a GregorianCalendar...
How can I set timezone for Jboss server