Hey, Owen. Okay...I can not edit the /etc/default/jenkins file as recommended in the Jenkins Wiki and have to edit the init.d/jenkins file directly.
I inserted the timezone info in the same place you have it so now my running process looks like yours: /usr/bin/java -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 And now my page generated timestamp looks like this: Page generated: Aug 14, 2013 3:48:21 PM That did it! Thank you! I think it's worth updating the wiki with this information because doing it as stated in the wiki doesn't work. -Pete On Aug 14, 2013, at 3:43 PM, Owen B. Mehegan <[email protected]> wrote: > Note that I pass the timezone option BEFORE the -jar jenkins.war... > > On Wednesday, August 14, 2013 12:17:00 PM UTC-7, harperville wrote: > Thanks for the response. Didn't get much help on this one. > > Yes, I'm seeing the same arguments on my Java process but all of my jobs are > logged UTC still. > > /usr/bin/java -jar /usr/share/jenkins/jenkins.war > --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 > -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York > > The page was generated fresh, although, again, in UTC: > > Page generated: Aug 14, 2013 7:14:48 PM > > $ date > Wed Aug 14 15:15:23 EDT 2013 > > -Pete > > On Aug 14, 2013, at 3:08 PM, Owen B. Mehegan <[email protected]> wrote: > >> This has been working for me for a long time: >> >> java -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/Los_Angeles -jar >> jenkins.war >> >> Looks like you tried that though. After making the change, double check the >> "Page generated" timestamp at the bottom of any Jenkins page and see what >> that shows. >> >> On Tuesday, August 13, 2013 1:19:16 PM UTC-7, harperville wrote: >> 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. > > > -- > 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. -- 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.
