Change Jenkins time zone

Posted Federico

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Change Jenkins time zone相关的知识,希望对你有一定的参考价值。

修改Jenkins时区

Debian:
vim /etc/defalut/jenkins

JAVA_ARGS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Aisa/Shanghai"

RedHat/CentOS
vim /etc/sysconfig/jenkins

JENKINS_JAVA_OPTIONS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai"

如果修改重启后还未生效,将以下配置一并修改:

JENKINS_JAVA_OPTIONS="-Duser.timezone=America/New_York"

以上是关于Change Jenkins time zone的主要内容,如果未能解决你的问题,请参考以下文章

需要 active_support/time_with_zone 后的 Time:Class 的未定义方法`zone`

Git将 GitHub 工程设置为私有库 ( 登录账号 | 工程主页 | Settings | Danger Zone | Change visibility | Make private )

在 Rails 中,如何以可与 ActiveSupport::TimeZone[zone].parse() 一起使用的格式获取当前时区 (Time.zone)?

Mysql错误:The server time zone value is unrecognized or represents more than one time zone

通过api修改jenkins change

PostgreSQL alter type timestamp without time zone -> with time zone