How to set the timezone for the Java environment

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

This article only applies to Atlassian's server products. Learn more about the differences between cloud and server.

Purpose

Functionality within Atlassian applications may be reliant upon the timezone that is configured for the Java environment. The timezone value will be picked up by default from the operating system, however, it is possible to alter this default by passing an additional parameter to the Java Virtual Machine (JVM).

The timezone can be edited by changing the server clock on the server that is running JAVA or changing the properties as explained below.

Solution

The value of the timezone can be altered with the below JVM argument, which is set as per our Setting Properties and Options on Startup documentation. The example below shows how to set it for America/Chicago:

-Duser.timezone=America/Chicago

The List of TZ Database Time Zones documentation on Wikipedia contains further information on the different Timezones that can be set


Example Timezones

Timezone Code
Sydney Australia/Sydney
Los Angeles America/Los_Angeles
New York America/New_York
Paris Europe/Paris
Rome Europe/Rome
UTC UTC
Madrid Europe/Madrid
Description Functionality within Atlassian applications may be reliant upon the timezone that is configured for the Java environment. The timezone value will be picked up by default from the operating system, however, it is possible to alter this default by passing an additional parameter to the Java Virtual Machine (JVM).
Product Jira, Confluence, Bamboo, Fisheye, Bitbucket
Platform Server
Last modified on Oct 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.