timeset will help you if your computer is not able to keep the current time (CMOS battery has run out of power). Of course, you can buy a new battery and replace it. My tip: Save your money and time and use timeset
make build
or (on Windows; otherwise this makes no sense)
make install
- take the standard ntp server (pool.ntp.org)
timeset.exe
- specify ntp server as first argument
timeset.exe pool.ntp.org
# if your router acts as a time server for your local network
timeset.exe 10.10.1.1
- Specify the time server in the name of the executable
timeset_ntp_pool_org.exe
# if your router acts as a time server for your local network
timeset_10_10_1_1.exe
!! timeset must be started with administrator rights (otherwise system time and date cannot be set) .!!!
You can also just download the latest release from here.