Set 24-hour clock format in Jenkins

╄→尐↘猪︶ㄣ 提交于 2021-02-06 08:40:06

问题


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.


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!