Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set 24-hour clock format in Jenkins

Despite the fact that in http://<jenkins server>/systemInfo the user.timezone property value meets my actual time zone I still have 12-hour clock format.

enter image description here

I would like to have 24-hour clock format instead.

Does anyone have any ideas how it can be changed in Jenkins?

Thank you.

like image 682
meeroslaph Avatar asked Jul 03 '14 20:07

meeroslaph


People also ask

How to change timezone on Jenkins?

To see the time zone currently set, go to jenkins_server/systemInfo and see the user. timezone system property. You may want to change the time zone displayed to match your own time zone. By going to your user configuration page, you can set the User Defined Time Zone to match your own.

How do I set Google to 12 hour clock?

You can go into the Google Home app and select the device, then settings, device info and the time format is listed there to change.

How do I schedule a pipeline in Jenkins?

Let's select stage: Stage in the Sample Step drop-down, type scm in the Stage Name text field and click Generate Pipeline Script: Let's save it. The first statement, node('master') in the script above, indicates that the job will be executed on a node named master, which is the default node on the Jenkins server.


2 Answers

As @Arkain mentioned, you should specify in browser's settings the language which suits your intended time format. I had both English (US) and just English (which I thought was English (GB)), but then I realized that I should have added additional English (GB) language.

Thank you!

like image 92
meeroslaph Avatar answered Sep 20 '22 13:09

meeroslaph


Unfortunately, this situation hasn't changed and Jenkins' date display style is still linked to the browser language as of January 2016.

On a sidenote: There's a Locale Plugin, which supposedly allows to override Jenkins' default behaviour of picking up the locale via the browser language. Although - as Greg Dubicki noted - this plugin does process a language_country_variant string, only the language part (a 2-digit ISO 639-1 language code) has an effect, and it's only defining the UI langauge. The date display format still seems to be defined solely by the browser's language.

like image 41
zb226 Avatar answered Sep 20 '22 13:09

zb226