exact with the minutes but wrong with the hours.
Mon Sep 8 08:54:44 BST 2014.
When actually it is 20:54.
I did : sudo /etc/init.d/ntp restart at least ten times no avail.
My raspi activates a timelapse camera and has been working for month without any problem with the correct time and all of a sudden this problem occured without any intervention.
Now the camera instead of taking a picture at 10:00, take it at 22:00....Too bad it's dark.
Asked
Active
Viewed 611 times
2
Morgan Courbet
- 3,703
- 3
- 22
- 38
user3315730
- 177
- 1
- 3
- 8
1 Answers
2
Considering that the RPi has got no Real Time Clock and starts at January, 1st, 1970 every reboot, I assume that your ntpis working fine. Check with date -u the system time in UTC and compare to reality. It's most probably right (unless you used date -s to set the time manually).
The guess would be that your timezone settings are wrong. Please check the symbolic link /etc/localtime or remove it and create it newly according to your timezone by ln -s /usr/share/zoneinfo/<your-timezone-goes-here> /etc/localtime.
Ghanima
- 15,855
- 15
- 61
- 119
-
1Note that if you use Raspbian, you can run
sudo dpkg-reconfigure tzdatato change easily the timezone. – Morgan Courbet Sep 09 '14 at 08:59 -
Sure. It's noteworthy that the use of configuration tools might overwrite manual settings. (Also a possible error in this case.) – Ghanima Sep 09 '14 at 09:10
-
-
and the result is: Mon Sep 8 22:06:10 UTC 2014 when it is really 11:06 ...a real mystery! – user3315730 Sep 09 '14 at 10:09
-
-
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtimeOk, your date states BST looks like time is already localized. Mmmh. – Ghanima Sep 08 '14 at 20:17ntpdate -du pool.ntp.org– Craig Sep 09 '14 at 16:21