forked from ferryastika/MataElang-Platform
-
Notifications
You must be signed in to change notification settings - Fork 1
Timezone and configuring NTP client
ferryastika edited this page Aug 23, 2021
·
1 revision
Time if of great importance. Before installing Mata Elang Sensors and Defense Center, we must ensure our system time reflects our time zone (for example : Asia/Jakarta), use the following commands:
- sudo timedatectl list-timezones
- sudo timedatectl set-timezone Asia/Jakarta
- sudo timedatectl set-local-rtc False
- sudo timedatectl set-ntp True
Verifying the time configuration using the following commands: sudo timedatectl
The result is
Local time: Mon 2021-08-23 20:14:02 WIB Universal time: Mon 2021-08-23 13:14:02 UTC RTC time: Mon 2021-08-23 13:14:02 Time zone: Asia/Jakarta (WIB, +0700) System clock synchronized: yes systemd-timesyncd.service active: yes RTC in local TZ: no
If we manage sensors over different time zones, it is better to set the time zones to UTC. This makes us easier to correlate sensors data by referencing to one-time reference.