Uncategorized

Your RASPI DST if off?

So, say you’ve had your raspberry pi running for a while and for some reason your current time on the device is off by an hour due to daylight savings not being updated, what do you do?

It appears this happened to my RASPI where I’ve had a NetHomeServer installation running for a long time. I started noticing the lamp timer didn’t work as expected, the timing was not quite right… finally, I had to do something about it.

Logging on to the device via ssh and checking the date revealed it was off by one hour.

I suspected the network connection must have failed at some point (maybe around the time going from winter to summer time – the DST or daylight savings time) and the pi must have lost its actual time somehow.

The simple fix? Log in via SSH and issue the following:

pi@middlelake ~ $ sudo service ntp restart

[....] Stopping NTP server: ntpdstart-stop-daemon: warning: failed to kill 1922: No such process

. ok

[ ok ] Starting NTP server: ntpd.

pi@middlelake ~ $ date

Mon Oct 17 20:31:52 CEST 2016

pi@middlelake ~ $ sudo service ntp restart

[ ok ] Stopping NTP server: ntpd.

[ ok ] Starting NTP server: ntpd.

pi@middlelake ~ $ date

Mon Oct 17 21:43:42 CEST 2016

Problem solved!