问题
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.
回答1:
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!
回答2:
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.
来源:https://stackoverflow.com/questions/24563215/set-24-hour-clock-format-in-jenkins