Ubuntu – Timedatectl set-local-rtc 1 gives unexpected behavior

systemdtimevirtualbox

The hardware clock in my virtual machine is the local time reported by my host (the local time is 10:14, but my VM incorrectly reports 6:14 as the local time):

enter image description here

When I use sudo timedatectl set-local-rtc 1, the local time of the VM does not change. For whatever reason, set-local-rtc changes the RTC time, rather than reversing/advancing the local time appropriately:

enter image description here

How do I get the local time in my VM to accurately reflect the local time of the host, given that the hypervisor is reporting a HW clock as the local time?

Update:

I tried running sudo timedatectl set-local-rtc 0` for good measure, and that just sets the RTC back to the local time:

enter image description here

Best Answer

Updated :
That will solved with,

sudo timedatectl set-local-rtc 1 --adjust-system-clock
Related Question