This may or may not be of any interest to many but I definitely want to at least record it here as I have had to search for it multiple times. When you first run Raspbian, it should connect to a public time server and update. This is necessary because, unless you add one of a few options, there is no Real Time Clock (RTC) on the Pi to otherwise manage timekeeping or date settings. This can cause multiple problems including not being able to update Raspbian or even browse the web. What can you do when your Pi cannot access this public NTP pool?
Two ways to set your Pi time (I am sure there are more):
- Use this command manually update the time and date… each time you boot.
- sudo date -s ‘2019-08-03 19:34:00’ (example)
- Update the timesyncd service to where the Pi can get a local NTP update.
- nano /etc/systemd/timesyncd.conf (may need to use sudo)
- update the #NTP= line to NTP=192.168.30.1 (example)
- systemctl restart systemd-timesyncd.service (may need to use sudo)