Setting jenkins timezone

492 views
Skip to first unread message

Bruno Warmling

unread,
Nov 5, 2019, 12:21:40 PM11/5/19
to Jenkins Users
Hello everybody,

I'm new here, but this forum looks awesome and maybe someone here can help me.

This is my enviroment:
I have a Jenkins instance installed on a Windows Server 2016 and the timezone configured in this server is Brasilia - Federal District (GMT-3).
My jobs are running in this same server.

So, i had a problem with timezone. It looks like this my timezone is adding an additional hour to my JOBs due to a daylight saving.
In the system information i have this following configution:

user.timezone: America/Sao_Paulo



So, i tried to change it by running the following script below:

System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Brazil/East')

But unfortunetely, it won't work. I also tried to set the timezone in the JOB configurations, by including the timezone in the configuration like this:

TZ=Brazil/East
0 8,12 * * *

And it still running 1 hour before( cause it's assuming i'm on a DST)...

Does anyone here could help me please?

KR,
Bruno W.

Sai krishna reddy karri

unread,
Nov 6, 2019, 1:42:22 AM11/6/19
to jenkins...@googlegroups.com
did you tried changing the timezone in jenkins UI within manage jenkins - > configure system, there is an option to update it.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/817bb9ec-b1e9-4888-86b3-140f0e8eff99%40googlegroups.com.

Bruno Warmling

unread,
Nov 6, 2019, 7:12:43 AM11/6/19
to Jenkins Users
I found a configuration there to change the timestamper mask... Is this one?
Cause i was looking the documentation about this plugin, and it's saying that this plugins just adds timestamps to console output.

Em quarta-feira, 6 de novembro de 2019 03:42:22 UTC-3, Sai krishna reddy karri escreveu:
did you tried changing the timezone in jenkins UI within manage jenkins - > configure system, there is an option to update it.

On Tue, Nov 5, 2019 at 10:51 PM Bruno Warmling <bruno.wa...@gmail.com> wrote:
Hello everybody,

I'm new here, but this forum looks awesome and maybe someone here can help me.

This is my enviroment:
I have a Jenkins instance installed on a Windows Server 2016 and the timezone configured in this server is Brasilia - Federal District (GMT-3).
My jobs are running in this same server.

So, i had a problem with timezone. It looks like this my timezone is adding an additional hour to my JOBs due to a daylight saving.
In the system information i have this following configution:

user.timezone: America/Sao_Paulo



So, i tried to change it by running the following script below:

System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Brazil/East')

But unfortunetely, it won't work. I also tried to set the timezone in the JOB configurations, by including the timezone in the configuration like this:

TZ=Brazil/East
0 8,12 * * *

And it still running 1 hour before( cause it's assuming i'm on a DST)...

Does anyone here could help me please?

KR,
Bruno W.

--
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 jenkins...@googlegroups.com.

Mahima Mishra

unread,
Nov 6, 2019, 10:31:29 AM11/6/19
to Jenkins Users
Can you not restart you Jenkins server with -Duser.timezone="Brazil/East" option if running via jar or setting up environment:   - TZ=Asia/Shanghai , if running a docker.

Bruno Warmling

unread,
Nov 7, 2019, 9:24:07 AM11/7/19
to Jenkins Users
Finally i found the solution,

The problem was related to the JDK, i used the TZUpdater to update the timezones on my server and it worked well.
Thanks fellas for your help, really appreciated it.
Reply all
Reply to author
Forward
0 new messages