java incorrect timezone
java, timezone
Solution
Ensure you set the timezone for the JVM when starting the application:
-Duser.timezone="Australia/Sydney"
Problem
I have an instance of Java which seems to be using a completely incorrect time zone. Instead of using the Australia/Sydney time zone which Windows is using, it is using the America/Caracas time zone. I checked the Windows time through the system clock firstly, then checked `HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/` and `ControlSet001`, `ControlSet002`. All are set to a Sydney time zone. Does anybody know if this is a bug in Java, or if it is referring to a time set elsewhere? Java version is 1.6.0_06