-
Suggestion
-
Resolution: Won't Do
-
None
NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.
When migrating JIRA to another server, if there are timezone inconsistencies between the two servers it can cause considerable problems with the new server that may not be discovered until problems have been introduced into the dataset. Please enhance JIRA to timestamp an XML backup and provide a warning during XML restore that the backup does not match the server time of the instance it is being imported into.
- Times stored in the database is based on the JIRA JVM user timezone
Workaround
In order to restore the times back to their last known working form, the below process can be used for the new server:
- Generate an XML backup from the previous server, or obtain the last-known working one and copy it to the new JIRA server.
- Schedule a downtime window.
- Stop the new JIRA server.
- Either:
- Set the JVM timezone argument, e.g.: -Duser.timezone=GMT, as in Setting Timezone in JIRA.
- Change the System Time of the server that the JVM is running on (the JVM will default to that time).
- Start the new JIRA server.
- Import the XML backup from the previous server.
- Test JIRA.
If the server is unable to be rolled back, the below can be followed, however this is not the recommend method and may cause additional problems due to time inconsistencies.
- Schedule a downtime window.
- Export the XML backup.
- Stop JIRA.
- Either:
- Set the JVM timezone argument, e.g.: -Duser.timezone=GMT, as in Setting Timezone in JIRA.
- Change the System Time of the server that the JVM is running on (the JVM will default to that time).
- Start JIRA.
- Import the XML backup.
- Test JIRA.
- is related to
-
JRACLOUD-65305 Cloud import does not record entries timezone correctly (change items, issue created dates, etc.)
- Closed
-
JRASERVER-26039 Verify the system timezone when an XML backup is restored
- Closed
- relates to
-
JRACLOUD-66851 Incorrect timestamps after re-importing a backup on a machine with a different timezone
- Closed