Ubuntu设置/修改系统时区
jwenjian opened this issue · 0 comments
jwenjian commented
- 用
time -R
查看当前时区
如当前的时区为UTC+0, 则显示如下:
wenjian@localdev:~/service/mysql$ date -R
Fri, 06 Dec 2019 14:53:55 +0000
当前时区为 UTC+0
- 用
sudo dpkg-reconfigure tzdata
修改时区
选择 Asia
回车
选择 Chongqing
, 回车即可
忽略图片中的乱码 :)
终端上此时会显示执行结果:
wenjian@localdev:~/service/mysql$ sudo dpkg-reconfigure tzdata
Current default time zone: 'Asia/Chongqing'
Local time is now: Fri Dec 6 23:18:54 CST 2019.
Universal Time is now: Fri Dec 6 15:18:54 UTC 2019.