Setting system time and hardware time from terminal

Trying to recover from coreboot leap year bug, I researched how to set system time and bios (hardware) time. When setting the GUI to internet time, I am getting system time set to zero (1/1/1970). To recover from this I can set bios time with:

sudo hwclock --set --date “MM/DD/YYYY hh:mm:ss”
and to set system time I can:
sudo date -u MMDDhhmmYYYY
Perhaps NTP will work now.

1 Like