1

I have a machine that runs several different servers and it's in a specific time zone in Central Europe.

I need to run SonarQube (4.5.7) in UTC time.

I uncommented the following line in web/WEB-INF/config/environment.rb and restarted SonarQube but the server still shows the original time zone on the System Info page.

config.time_zone = 'UTC'

Should that be enough to change the time zone in SonarQube? Because that didn't really work.

Is there a way I can pass the user.timezone property to the JVM by editing the wrapper.conf file? Looks like it could work but it doesn't look like I'm supposed to touch that file.

Thanks.

4

1 回答 1

6

不得触碰内部文件,包括 web/**/*。

要更改 JVM 时区,您应该编辑 conf/sonar.properties 并将值添加到-Duser.timezone=Europe/Sofiapropertiessonar.web.javaAdditionalOpts和.sonar.ce.javaAdditionalOptssonar.search.javaAdditionalOpts

于 2016-08-03T12:15:28.730 回答