I hope this has a simple answer, but I have spent hours looking for a solution and I am now more confused.
My RevPi has the wrong time and date. I can set it correctly using "
...." but the next day it is incorrect again. I understand that the RevPi has a 24h (min.) RTC backup. I then thought I was not setting the RTC using this command so I followed this post: https://revolution.kunbus.com/forum/vie ... 204a34849e
sudo date -set
If I run
, I receive the reply
sudo timedatectl set-time "2019-09-18 13:13"
. I am using a slightly unusual set up with the RasPi accessing the internet through a couple of gateways, but the command
Failed to set time: Automatic time synchronization is enabled
works, so internet access is good. If I run
sudo apt-get update
, I get
Failed to query server: Invalid argument
Can anyone explain what is going on? I need the RevPi to start up, check the NTP server and get the correct time. I would also like the RTC backup to work.
Any help is much appreciated.