I had to set -Duser.timezone=America/Denver in JAVA_OPTS (rather than JAVA_ARGS) and I had to set the env variable TZ=America/Denver as well.
I don't see any mention of JAVA_ARGS in the Dockerfile, so I'm not sure how it is used. Are you sure it shouldn't be JAVA_OPTS? Mark Waite On Mon, Apr 3, 2017 at 9:23 AM <[email protected]> wrote: Hi guys, I've got some issue configuring timezone on my jenkins server running on docker. The centos7 is sync to the good time, the jenkins docker container also has the good time when i logged to it. i added this to the Dockerfile: ENV TZ="/usr/share/zoneinfo/EST5EDT" i also set the time zone via the JAVA_ARGS. Jobs executions and Page generated display the good time. the Issue is from the log file and the maven execution (maven.build.timestamp), they both display one hour late and at this point i really don't understand where that come from. Do you have any idea? Thanks in advance! -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e1790239-07e8-4620-bfab-d06b97567f33%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/e1790239-07e8-4620-bfab-d06b97567f33%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFrM0wdSxmkwAkt06fYgDhwcHGe0_qY4pUg%2BmxmRUJsqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
