I'm working with archlinuxarm on a Raspberry Pi 4 (8GB).
As I write this post the current local time is 2021-12-25 11:15:00 EST
Here is the output from $this->bbcode_second_pass_code('', 'timedatectl status'):
$this->bbcode_second_pass_code('', '
$ timedatectl
Local time: Fri 2021-12-24 16:23:51 EST
Universal time: Fri 2021-12-24 21:23:51 UTC
RTC time: n/a
Time zone: America/New_York (EST, -0500)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
')
I can set system clock to the correct time by first, stopping automatic time synchronization then, manually synchronizing:
$this->bbcode_second_pass_code('', '
$ sudo systemctl stop ntpd
$ sudo ntpd -gq
')
The output from the "ntpd" command adjusts the system clock forward approx 18 hours i.e.$this->bbcode_second_pass_code('', '+65983.561187 s')
To test if the correct time will "stick" I reboot the machine. It consistently resets to $this->bbcode_second_pass_code('', 'Fri 2021-12-24 16:23:51 EST')
How do I troubleshoot this issue?