In my current linux system, whenever electricity goes down, then after that I'm always losing my date & time settings (probably because I need to buy a new CMOS battery). Before I learned about this, setting up the date and time manually was so annoying. But don't worry, using this one-liner command, everything will automatically set up perfectly.
sudo ntpdate -s id.pool.ntp.org
I'm using id.pool.ntp.org
because I'm in Indonesia, if you on different country then try find it on pool.ntp.org to see the lists of time servers around the world.