Set timezone in Stash

Lucid Software February 5, 2015

Can I set the timezone that Stash uses different from the OS's timezone? A config setting?

It is hosted on a multipurpose machine, that has inflexible programs, and it must be set to UTC for these other functions.

It'd be great to the correct timezone in Stash, though.

I do know about https://jira.atlassian.com/browse/STASH-2817. That would solve the problem too, albeit it is a more difficult request as it asks for timezone to vary by user.

1 answer

1 accepted

4 votes
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2015

You can set the timezone using a JVM parameter: -Duser.timezone=America/Chicago

For Stash, you can add that parameter to the JVM_SUPPORT_RECOMMENDED_ARGS variable in your setenv.sh or setenv.bat.

Note that if you're running Stash as a service on Windows, setenv.bat is not evaluated and you'll have to set these arguments differently. In that case, you'll want to follow the instructions on https://confluence.atlassian.com/display/STASHKB/Change+STASH_HOME+when+installed+as+a+Windows+service, but add the -Duser.timezone=<your timezone> parameter instead.

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events