Skip to content
Set up Time Synchronization on Linux
First step: Check your current data time
$ date
Wed Feb 28 03:54:59 PM UTC 2024
Change your time zone
$ dpkg-reconfigure tzdata
Current default time zone: ‘Asia/Bangkok’
Local time is now: Wed Feb 28 03:58:13 PM +07 2024.
Universal Time is now: Wed Feb 28 08:58:13 UTC 2024.
Check NTP status
$ systemctl status ntp
$ ntpq -p
Alternative: By systemd-timesyncd
$ systemctl status systemd-timesyncd
Finally
$ timedatectl
Local time: Wed 2024-02-28 16:02:19 +07
Universal time: Wed 2024-02-28 09:02:19 UTC
RTC time: Wed 2024-02-28 09:02:19
Time zone: Asia/Bangkok (+07, +0700)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Like this: Like Loading...
Post navigation
You must be logged in to post a comment.