5.1.3.2.1.3. Time Issues

Use the command date to print or set the system date and time.

5.1.3.2.1.3.1. Chrony Issues

To troubleshoot the Chrony service, follow these steps:

  1. In the chrony configuration file:

vi /etc/chrony.conf
  1. Check the system’s time and date settings:

timedatectl
../../../../../_images/timedatectl.png


  1. Use chronyc to force a time synchronization:

chronyc makestep
../../../../../_images/makestep.png


5.1.3.2.1.3.2. VirtualBox Issue

If your Virtual Machine does ot have the current time and date:

Turn off the Virtual Machine.

shutdown -h now

Go to the Virtual Machine Settings, select System and in the Motherboard tab check the Hardware Clock in UTC Time box. Turn on the machine again and check the time.

../../../../../_images/fixvbclock.png