Skip to content

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:

  1. sudo timedatectl list-timezones
  2. sudo timedatectl set-timezone Asia/Jakarta
  3. sudo timedatectl set-local-rtc False
  4. 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.