Cannot select TimeZone - JVM returns differently formatted timezone
Symptoms
- Once logged in the Admin dashboard displays an error
- Going to General Configuration in Admin the main timezone regions appear but the timezone dropdown list is not populated.
The following appears in the atlassian-jira.log
:
2011-08-17 18:32:59,928 http-8080-6 ERROR timp 1112x44x1 1ws28jx 10.1.1.241 /secure/admin/EditApplicationProperties!default.jspa [webwork.util.ValueStack] query="/timeZoneInfos" {[id="null" type="5" values=""]} {[id="timeZoneInfos" type="8" values=""]}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
...
Caused by: java.lang.IllegalArgumentException: The datetime zone id is not recognised: GMT+10:00
at org.joda.time.DateTimeZone.forID(DateTimeZone.java:199)
at com.atlassian.jira.timezone.TimeZoneIds$1.apply(TimeZoneIds.java:30)
at com.atlassian.jira.timezone.TimeZoneIds$1.apply(TimeZoneIds.java:27)
at com.google.common.collect.MapMaker$StrategyImpl.compute(MapMaker.java:592)
Diagnosis
For example, Java returns GMT +10:00 instead of "Australia/Brisbane"
C:\JIRA\test>java ShowTimeZone
java.util.TimeZone.getDefault().getID() is 'GMT+10:00'
Cause
Possible issue with the windows implementation with JVM.
Resolution
Modify the timezone as per our Set the timezone for the Java environment KB article, for example -Duser.timezone=Australia/Brisbane
.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.