Change time zone

If your hudson instance is running in a different location than the user's (for example: the server is in NY but users are in LA), then the NY time zone will most probably be used, which may be quite annoying if you need to compare build dates.

To see the time zone used go to http://server/hudson/systemInfo and see the user.timezone system property.

If you cannot change the time zone of your server, then you can force jelly to use a given time zone for formatting time stamps.

So, you need to start your servlet engine which the following java system property :

java -Dorg.apache.commons.jelly.tags.fmt.timeZone=TZ ...

where TZ is a java.util.TimeZone ID ("Europe/Paris" for example).

Note that

user.timezone=Europe/Paris

will work as well, but it can interfer with other contexts.

If running Hudson via a system package, this can be accomplished by setting JAVA_ARGS in your /etc/default/hudson (Debian) or /etc/sysconfig/hudson (Red Hat) such as:

JAVA_ARGS="user.timezone=Europe/Paris"

and then restarting Hudson via the init script (not via the UI).

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jul 09, 2009

    Bradley Wagner says:

    So, I'm running into a strange problem where my server is set to the correct tim...

    So, I'm running into a strange problem where my server is set to the correct time and timezone EDT (GMT-4:00) but for some reason the Hudson timezone property is set to GMT-05:00 and the hudson times are all 1 hour off. Is this some inability for Hudson to handle daylight savings time in the US?

  2. Mar 17, 2010

    Peter Yamamoto says:

    timezone set to GMT-8 which is usually right, but currently it's one hour off......

    timezone set to GMT-8 which is usually right, but currently it's one hour off... kind of confusing/annoying.

  3. Sep 17, 2010

    Sorin Sbarnea says:

    But how can we customize other settings like: datetime format, showing GMT in ui...

    But how can we customize other settings like: datetime format, showing GMT in ui, custom timezone for each user?

  4. Jul 22, 2011

    David Balažic says:

    Can it please be changed to show times always in users timezone? It is one line...

    Can it please be changed to show times always in users timezone?

    It is one line of script per output, and it gets rid of all this config settings. (for example I am an user of one hudson server and have no access to the settings)

    Example of it demoed here: http://xerces8.comli.com/timepage.html