If you use a virtual machine, you might have noticed that its system time starts to lag after it has been in the ‘powered on’ state for some time. To address this, it is useful to run an NTP (Network Time Prococol) client within the VM to have its time synchronised regularly.
On Windows, this is enabled by default and uses
On a Debian-based Linux distribution, you can install NTP with
apt install ntp and start it with
sudo systemctl start ntp.