This is a simple symptom-cause-solution blog entry only. I hope these blogs will help fellow administrators.
Symptom
JVM detects UTC timezone as ACT. This will be evident particularly in web application servers, such as WebLogic, WebSphere and JBoss. Reported time (for example in log files) will not match operating system's time.
Cause
JVM tries to determine what the timezone is by looking at operating system settings. It does not recognize the UTC timezone properly and chooses (or defaults to) ACT timezone.
Solution
Specify -Duser.timezone=Etc/UTC on the java command-line. This forces the JVM to use the UTC timezone.
Using the tzupdate tool does not appear to rectify the issue.
Note: Some Windows operating systems do not provide a UTC timezone out-of-the-box. A patch is available from Microsoft to rectify this.
References
Comments
Post a Comment