PINE64
Issue with NTP (Network Time Protocol) and RTC (Real Time Clock), timedatectl - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+---- Forum: Ubuntu (https://forum.pine64.org/forumdisplay.php?fid=27)
+---- Thread: Issue with NTP (Network Time Protocol) and RTC (Real Time Clock), timedatectl (/showthread.php?tid=4873)



Issue with NTP (Network Time Protocol) and RTC (Real Time Clock), timedatectl - emilhem - 08-07-2017

I have a Pine64 2GB without anything extra attached (like WiFi, RTC battery, or monitor).

I have installed the ntp package and timedatectl reports the time and date being synchronized. The issue is that the time displayed is off by two hours (and a second).

Code:
     Local time: Mon 2017-08-07 17:28:06 CEST
 Universal time: Mon 2017-08-07 15:28:06 UTC
       RTC time: Mon 2017-08-07 15:28:07
      Time zone: Europe/Stockholm (CEST, +0200)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no

The actual local time is 15:28:07, not 17:28:06

You might then tell me to set timedatectl set-local-rtc true but this causes the following message to appear the next time I run timedatectl
Code:
     Local time: Mon 2017-08-07 17:30:13 CEST
 Universal time: Mon 2017-08-07 15:30:13 UTC
       RTC time: Mon 2017-08-07 17:30:12
      Time zone: Europe/Stockholm (CEST, +0200)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
        This mode can not be fully supported. It will create various problems
        with time zone changes and daylight saving time adjustments. The RTC
        time is never updated, it relies on external facilities to maintain it.
        If at all possible, use RTC in UTC by calling
        'timedatectl set-local-rtc 0'.


This means that the local time is still wrong and that the warning is suggesting me not to use set-local-rtc.

What should I do to make the local, UTC and RTC time correct?