File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Force JVM default TimeZone on Windows start/login

 
Maurice Le Chat
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic