标签 时区 下的文章

查看当前时区方法:

root@localhost:~# timedatectl
               Local time: Sun 2022-12-18 16:26:09 CST
           Universal time: Sun 2022-12-18 08:26:09 UTC
                 RTC time: Sun 2022-12-18 08:26:10
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

查看正确的时区

root@localhost:~# timedatectl list-timezones |grep Shanghai    #查找中国时区的完整名称
Asia/Shanghai

- 阅读剩余部分 -