日本時間に設定(タイムゾーンを変更)
作業前の確認
$ date
Wed Apr 5 06:19:30 UTC 2023
$ sudo timedatectl
Local time: Wed 2023-04-05 06:21:38 UTC
Universal time: Wed 2023-04-05 06:21:38 UTC
RTC time: Wed 2023-04-05 06:21:38
Time zone: n/a (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
設定変更
$ sudo timedatectl set-timezone Asia/Tokyo
作業後の確認
$ sudo timedatectl
Local time: Wed 2023-04-05 15:21:57 JST
Universal time: Wed 2023-04-05 06:21:57 UTC
RTC time: Wed 2023-04-05 06:21:57
Time zone: Asia/Tokyo (JST, +0900)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
$ date
Wed Apr 5 15:22:12 JST 2023
- Log in to post comments