Ok, I have this raspberry pi zero that's been running for most of a year now and I noticed a few weeks ago that the time was off by several hours. I did some digging and it just plain thinks that UTC time is 4 hours before what it should be.
I poke around the internets, and tried the items here to no avail. I found this post and my ntp.conf
file is exactly the same (I ran diff on them to verify). I haven't tried setting the time explicitly with ntp -s...
because I was under the impression that's what ntp is for?
I've set the timezone using the sudo dpkg-reconfigure tzdata
command (and sudo raspi-config
but those seem to get to the same menu with the same options). This results in the timezone being ok, but UTC is still off.
pi@raintree:~ $ date
Mon Sep 17 04:13:52 PDT 2018
pi@raintree:~ $
pi@raintree:~ $ date -u
Mon Sep 17 11:13:58 UTC 2018
Right now, that should show Mon Sep 17 15:13:58 UTC 2018
. EDIT I am referencing https://time.is/UTC. Screen shot here.
ntpq seems to be ok.
pi@raintree:~ $ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
li290-38.member .INIT. 16 u - 64 0 0.000 0.000 0.000
PBX.cytranet.ne .INIT. 16 u - 64 0 0.000 0.000 0.000
ns1.backplanedn .INIT. 16 u - 64 0 0.000 0.000 0.000
195.21.152.161 .INIT. 16 u - 64 0 0.000 0.000 0.000
Any ideas on where else to look?
Misc info:
pi@raintree:~ $ uname -a
Linux raintree 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux
pi@raintree:~ $
pi@raintree:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
Mon Sep 17 15:13:58 UTC 2018
. That is the "current" (at the time of the post) time in UTC. So it is 4 hours off.