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
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

429 views 6 9
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