ps:作者本人首先使用tzselect
命令,登出账户再登入未生效。
查阅tzselect
手册,看到手册描述中写了一句话:
Note that tzselect will not actually change the timezone for you. Use 'dpkg-reconfigure tzdata' to achieve this.
所以,尝试使用了如下命令:
1.
sudo dpkg-reconfigure tzdata
设置Asia/Shanghai
2.登出再登入,结果生效了。