-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
历史任务构建时间显示含有中文,建议修改为普通的24小时制(2019-05-08 20:32:00) #79
Comments
谢谢您的反馈,Jenkins 目前还没有统一设置日期格式的配置。不过,这是个很好的提议。 |
@luantu 麻烦贴一下相关的版本信息 |
|
我安装了中文插件,系统里边也设置了 zh_CN 并且勾选了强制所有用户使用此语言 重启过服务 但是还是默认英文 |
@zgq5555 你说的这个情况,和当前 issue 的主题无关,建议重新开一个 |
日期格式 好像是和浏览器 语言设置有关的.https://issues.jenkins-ci.org/browse/JENKINS-4508 Jenkins uses the locale of the web browser doing the request. Just fix your Accept-Language header. |
我研究了一下,在这个文件中控制的 core/src/main/resources/hudson/widgets/HistoryWidget/entry.jelly jenkins 通过 这个 tag "<i:formatDate>" 来格式化日期的,这个确实和本地浏览器 有点关系的. dateStyle="medium" timeStyle="medium" will show 2020-8-19 17:27:01 dateStyle="long" timeStyle="long" will show 2020年8月19日 下午05时27分01秒 不过很奇怪的 是 点进去每个构建历史中, 中间主页上也显示了个日期时间,这个的格式 就 不一样了. 可以试着给jenkins 提个 PR 看看老外怎么想的/ 这2个地方的日期格式 不统一. 总之老外的想法和我们的不一样的. |
看着不习惯,例如某个任务显示是"上午 00:30" ,感觉很怪
The text was updated successfully, but these errors were encountered: