使用指令 timedatectl
查看目前 ubuntu 的時區設定
$ timedatectl
列出所有 Asia 的時區
$ timedatectl list-timezones | grep Asia
變更時區為 Asia/Taipei
$ sudo timedatectl set-timezone Asia/Taipei
重新校時
$sudo ntpdate clock.stdtime.gov.tw
Commands:
status Show current time settings
show Show properties of systemd-timedated
set-time TIME Set system time
set-timezone ZONE Set system time zone
list-timezones Show known time zones
set-local-rtc BOOL Control whether RTC is in local time
set-ntp BOOL Enable or disable network time synchronization