Cannot select TimeZone - JVM returns differently formatted timezone
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
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
:
1
2
3
4
5
6
7
8
9
10
11
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"
1
2
C:\JIRA\test>java ShowTimeZone
java.util.TimeZone.getDefault().getID() is 'GMT+10:00'
Cause
Possible issue with the windows implementation with JVM.
Solution
Resolution
Modify the timezone as per our Set the timezone for the Java environment for Jira Data Center KB article, for example -Duser.timezone=Australia/Brisbane
.
Was this helpful?