Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong time and date. #816
Every time I turn off or restart my raspberry the date and time become wrong.
settings > appearance > International > region (Brazil / America / Bahia)
The only way to get the correct date and time and forcing a updating with "sudo ntpd -gq" but simply restart or shut down they come back to get wrong.
OS: Xbian 1.0 (knockout) (kernel: Linux 4.1.13+)
As a quick fix you could put "sudo ntpd -gq" into /etc/rc.local so it runs automatically every time the pi starts up.
Do you set the time zone from within the Kodi menu? If so you should try using "sudo xbian-config" and setting them there, it might make a difference. Worth a try if you haven't done so already!
Is ntpd running OK?
I have the same problem. I updated the
xbian@xbian ~ $ ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== 220.127.116.11 .INIT. 16 u - 1024 0 0.000 0.000 0.000 18.104.22.168 .INIT. 16 u - 1024 0 0.000 0.000 0.000 22.214.171.124 .INIT. 16 u - 1024 0 0.000 0.000 0.000 126.96.36.199 .INIT. 16 u - 1024 0 0.000 0.000 0.000 188.8.131.52 .INIT. 16 u - 1024 0 0.000 0.000 0.000 184.108.40.206 .INIT. 16 u - 1024 0 0.000 0.000 0.000
Nothing is changed after running
I ended up editing /var/lib/ntp/ntp.conf.dhcp to reflect the correct NTP server (instead of /etc/ntp.conf).
Not that it matters, but I guess, here's how I came to this conclusion. Inside the /etc/ntp.conf file, the 2nd line was "driftfile /var/lib/ntp/ntp.drift" .. Attempted to edit that file, however, it did not exist. So, just went into that folder and the only file in there was ntp.conf.dhcp. About the 6th line down showed the IP address NTP was using as the server, so I just changed it to my router IP and I don't have the problem anymore.
Hope this helps someone!