服务器时区正常
[root@localhost bak]# timedatectl | grep "Time zone"
Time zone: Asia/Shanghai (CST, +0800)
进入Jenkins→系统管理→脚本命令行,输入
System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai')
点击运行生效
服务器时区正常
[root@localhost bak]# timedatectl | grep "Time zone"
Time zone: Asia/Shanghai (CST, +0800)
进入Jenkins→系统管理→脚本命令行,输入
System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Shanghai')
点击运行生效