Solved by setting a “custom” NTP configuration. I say “custom” because I just put the default one that HA should use, that for some reason wasn’t used.
These are the steps that I followed:
Format a USB stick with FAT32 (EXT4 and NTFS should work too) and call it CONFIG
long story: just migrated from raspberry pi 3B to Ubuntu VM running on an Intel NUC with windows 10 and VirtualBox.
I started from a fresh installation following the instructions from TheHookUp outube video and then restored the full snapshot.
Everyting seems ok except the multifactor authentication that I disabled before creating the snapshot from raspberry instance.
Now I’m trying to enable again the MFA (perfectly working on raspberry) in the new instance but the association with Google Authenticator doesn’t work due to some kind of issue with time settings.
My new home assistant instance shows the correct timezone and time in logs but if I open the cli and type “date” i get the UTC time (the correct time here in Italy now is UCT+2).