sleepdefic1t
10/29/2017 - 4:24 PM

One-line command to update Raspberry Pi system-time. Obviously, you must be connected to the web.

One-line command to update Raspberry Pi system-time. Obviously, you must be connected to the web.

// one-line time-update
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"