3

I have a computer without internet connection and I would like to manually set the system time. I've tried running timedatectl set-time, but I get

Failed to set time: Automatic time synchronization is enabled

While this is true, the NTP server is not available, so the time is not actually updating. I don't want to disable NTP synchronization, as I would like the computer to synchronize when it regains internet connection. Which would be the best way to manually set system time while keeping NTP sync on?

Can I just do timedatectl set-ntp false, set the time and then run timedatectl set-ntp true, or is there a better solution to this?

Thanks.

jnts
  • 31

0 Answers0