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.
I would like to have 24-hour clock format instead.
Does anyone have any ideas how it can be changed in Jenkins?
Thank you.
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.
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.
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.
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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With