Zero's Blog

Ubuntu 16.04修改时区

通过dpkg-reconfigure修改时区

执行下面命令,并按照提示选择“Asia/Shang”:

1
dpkg-reconfigure tzdata

正常执行结果为:

1
2
3
Current default time zone: 'Asia/Shanghai'
Local time is now: Fri Jul 15 16:38:11 CST 2016.
Universal Time is now: Fri Jul 15 08:38:11 UTC 2016.