Set timezone in Stash

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

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
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
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

99 views 5 3
Join discussion

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