https://blog.csdn.net/king_wang10086/article/details/76178711
[root@jenkins ~]# yum install -y ntpdate
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package ntpdate-4.2.6p5-.el6.centos..x86_64 already installed and latest version
Nothing to do
[root@jenkins ~]# ntpdate us.pool.ntp.org
Oct :: ntpdate[]: adjust time server 65.223.27.156 offset 0.061012 sec
# 系统时间同步到硬件
hwclock --systohc #crontab 里面加个任务 每一个小时同步一次
先矫正操作系统时间,再考虑矫正jenkins时间。
jenkins日期时区不对的修改方法 - hua_ed的专栏 - CSDN博客
https://blog.csdn.net/hua_ed/article/details/50546853
How To Change Timezone on a CentOS 6 and 7 - nixCraft
https://www.cyberciti.biz/faq/centos-linux-6-7-changing-timezone-command-line/
linux里date命令显示的时间和自己的不对。说是cst,什么意思,是时区问题吗。_百度知道
https://zhidao.baidu.com/question/1958055516262164340.html
Linux系统时间的问题,date看到正常的显示CST,时间不对的显示EST - Linux系统管理-ChinaUnix.net
http://bbs.chinaunix.net/thread-4161470-1-1.html
docker - jenkins的时区设置问题 - SegmentFault 思否
https://segmentfault.com/q/1010000000749249