ubuntu 设置北京日期时间

ubuntu 设置北京日期时间

 

root@ server:~# timedatectl
               Local time: 五 2026-07-17 09:08:56 UTC
           Universal time: 五 2026-07-17 09:08:56 UTC
                 RTC time: 五 2026-07-17 09:08:56
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

root@ server:~# sudo timedatectl set-timezone Asia/Shanghai
 
root@server:~# timedatectl
               Local time: 五 2026-07-17 17:10:06 CST
           Universal time: 五 2026-07-17 09:10:06 UTC
                 RTC time: 五 2026-07-17 09:10:06
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

 

posted @ 2026-07-17 17:12  emanlee  阅读(3)  评论(0)    收藏  举报