Change Jenkins Timezone

To see what time zone your jenkins is uning, in your browser navigate to:

 

http://servername:port/systemInfo

 

To change the jenkins timezone, in the Jenkins base directory, edit jenkins.xml

change this line:

<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080</arguments>

to this:

<arguments>-Xrs -Xmx256m -Duser.timezone=”Europe/London” -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080</arguments>

Restart that bad boy.

Advertisements

2 Responses to Change Jenkins Timezone

  1. Reuben Avery says:

    Linux is hard. Where does this file live typically? There’s no jenkins.xml in the JENKINS_HOME and inside the exploded war there is no jenkins.xml either

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: