How do we change the timezone in Bamboo?

The time we see in the Bamboo web user interface shows us the UTC time. We would like to set the timezone to America/Los_Angeles

We run our own Bamboo server. We're not using a hosted version. 

We understood the timezone was set by the system time on the instance. We changed the local timezone and verified it changed. However, Bamboo still shows us the time in UTC. 

Here's the command we used to set the timezone:

timedatectl set-timezone America/Los_Angeles

The output on the timedatectl status command shows us this was updated:

timedatectl status
      Local time: Thu 2015-08-06 15:09:33 PDT
  Universal time: Thu 2015-08-06 22:09:33 UTC
        RTC time: Thu 2015-08-06 22:09:32
       Time zone: America/Los_Angeles (PDT, -0700)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2015-03-08 01:59:59 PST
                  Sun 2015-03-08 03:00:00 PDT
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2015-11-01 01:59:59 PDT
                  Sun 2015-11-01 01:00:00 PST

We also tried setting the JAVA_OPTS the way we saw in an Atlassian Answers page: https://answers.atlassian.com/questions/104058

set JAVA_OPTS="-Duser.timezone=America/Los_Angeles -Djava.awt.headless=true"

We tried restarting the bamboo service and rebooting the server after we tried both of these, but we still see the time in UTC through the Bamboo web user interface. 

How do we get Bamboo to display the local time zone?

1 answer

I edited the first occurrence of JAVA_OPTS= in my /bin/setenv.sh

from this

JAVA_OPTS="-Xms${JVM_MINIMUM_MEMORY} -Xmx${JVM_MAXIMUM_MEMORY} ${JAVA_OPTS} ${JVM_REQUIRED_ARGS} ${JVM_SUPPORT_RECOMMENDED_ARGS} " #${BAMBOO_HOME_MINUSD}"
to this
JAVA_OPTS="-Duser.timezone=America/Chicago -Xms${JVM_MINIMUM_MEMORY} -Xmx${JVM_MAXIMUM_MEMORY} ${JAVA_OPTS} ${JVM_REQUIRED_ARGS} ${JVM_SUPPORT_RECOMMENDED_ARGS} " #${BAMBOO_HOME_MINUSD}"
And /admin/systemInfo.action now shows as below after restart

System properties

Thursday, 08 Oct 2015
10:40:31
1 minute, 1 second (since Thu Oct 08 10:39:31 CDT 2015)
root
America/Chicago
English (United States)
UTF-8
Linux 3.14.19-17.43.amzn1.x86_64
amd64
2
Apache Tomcat/7.0.5

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

82 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you