![]() |
1
westoy 240 天前
sudo dpkg-reconfigure tzdata
|
![]() |
2
zachary99 240 天前 via Android
手动 ntp 同步一下
|
![]() |
5
wanchenyi OP 我理解的是要改回 CST 时间,但现在改不回去了
|
6
taolu 240 天前
`timedatectl set-timezone Asia/Shanghai`
|
![]() |
7
xi452686571 240 天前
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
![]() |
8
cdlnls 240 天前
timedatectl set-timezone Asia/shanghai
timedatectl set-time 11:39:22 |
![]() |
9
aaa5838769 240 天前
时区问题吧
|
![]() |
10
cpstar 240 天前
timedatectl 的第四行 Time zone 不对
正确的应当是:Time zone: Asia/Shanghai (CST, +0800)。你这 UTC+0 了,那必须少 8 个小时 |
11
charlie21 240 天前
sudo apt install ntpdate
sudo ntpdate pool.ntp.org |
![]() |
12
wanchenyi OP 感谢各位,此问题已经解决,由于时间是通链接 /usr/share/zoneinfo/Asia/Shanghai 到 /etc/localtime
,但我的 Shanghai 文件已经被破坏,内容和 utc 文件中的一致,所以怎么设置,时间都是 utc+0 ,所以总是慢了 8 个小时,复制其它的机器上的 Shanghai 文件到本机上来,就可以了 |