ubuntu でタイムゾーン変更

timedatectl ってのがあるらしい

$ timedatectl Local time: Thu 2022-08-04 13:26:58 UTC Universal time: Thu 2022-08-04 13:26:58 UTC RTC time: n/a Time zone: Etc/UTC (UTC, +0000) System clock synchronized: yes NTP service: active RTC in local TZ: no

ほお

$ timedatectl set-timezone Asia/Tokyo ==== AUTHENTICATING FOR org.freedesktop.timedate1.set-timezone === Authentication is required to set the system timezone. Authenticating as: Ubuntu (ubuntu) Password: ==== AUTHENTICATION COMPLETE === $ timedatectl Local time: Thu 2022-08-04 22:27:36 JST Universal time: Thu 2022-08-04 13:27:36 UTC RTC time: n/a Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes NTP service: active RTC in local TZ: no

おお