タイムゾーン変更方法
1 |
$ sudo timedatectl set-timezone Asia/Tokyo |
タイムゾーン設定前 (デフォルト)
1 2 3 4 5 6 7 8 9 10 |
$ timedetectl status bash: timedetectl: command not found [ec2-user@ip-192-168-0-230 ~]$ timedatectl status Local time: Wed 2024-08-14 22:12:25 UTC Universal time: Wed 2024-08-14 22:12:25 UTC RTC time: Wed 2024-08-14 22:12:26 Time zone: n/a (UTC, +0000) System clock synchronized: yes NTP service: active RTC in local TZ: no |
タイムゾーン設定後
1 2 3 4 5 6 7 8 |
$ timedatectl status Local time: Thu 2024-08-15 07:15:01 JST Universal time: Wed 2024-08-14 22:15:01 UTC RTC time: Wed 2024-08-14 22:15:02 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes NTP service: active RTC in local TZ: no |