File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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

Force JVM default TimeZone on Windows start/login

Maurice Le Chat

Joined: Jan 20, 2009
Posts: 18
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

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

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!


I agree. Here's the link:
subject: Force JVM default TimeZone on Windows start/login
It's not a secret anymore!