I've been trying to change the timezone that Jenkins is using following these 
instructions (I'm on Debian): 

https://wiki.jenkins-ci.org/display/JENKINS/Change+time+zone

I added the following to my /etc/default/jenkins file:

JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT 
--ajp13Port=$AJP_PORT 
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York"

I also tried the following (with and without single quotes around the timezone 
based on advice I found whilst searching):

JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT 
--ajp13Port=$AJP_PORT -Duser.timeZone='America/New_York'"

Whatever I put in /etc/default/jenkins is reflected in the daemon so I know the 
file is being sourced properly:

/usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins 
--output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- 
/usr/bin/java -jar /usr/share/jenkins/jenkins.war 
--webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 
-Duser.timeZone=America/New_York

/usr/bin/java -jar /usr/share/jenkins/jenkins.war 
--webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 
-Duser.timeZone=America/New_York

The date on my server is correct:

$ date
Tue Aug 13 15:56:51 EDT 2013

But all of the jobs are shown as running in UTC time.

The user.timezone value displayed on systemInfo screen after making the change 
and restarting is: 

user.timezone   Etc/UTC

When I run any jobs, the time is still showing in UTC.  Any suggestions?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to