To set the hardware clock to the current time and date use the following commands:
date -s [YYYY.]MM.DD-hh:mm[:ss] hwclock -w