How to keep date and time up to date after resuming from sleep mode

If you’re running Ubuntu Linux within a VM, time and date may not be accurate after resuming from sleep mode.

timedatectl provides a way to display and modify date and time information.

To get full details about the current date/time/time zones settings :

timedatectl status

Syncing date and time information with a ntp server is relevant.

timedatectl set-ntp true

To see the modification in effect :

timedatectl status

The NTP service information should be updated from inactive to active.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.