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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.