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 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 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, but add the -Duser.timezone=<your timezone> parameter instead.



Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,230 views 1 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot