I am trying to set the system date on my linux machine. If it matters, it is an Amazon EC2 machine that I provisioned. I tried to set the date with this command:
sudo date -s "19 APR 2018 11:14:00";
However the date does not stay set for long; when I run the following:
sudo date -s "19 APR 2018 11:14:00"; date; date; date; date; date; date
I obtain:
Thu Apr 19 11:14:00 UTC 2018
Thu Apr 19 11:14:00 UTC 2018
Thu Apr 19 11:14:00 UTC 2018
Thu Apr 19 11:14:00 UTC 2018
Thu Apr 19 11:14:00 UTC 2018
Thu Apr 19 11:14:00 UTC 2018
Thu Oct 25 18:37:09 UTC 2018
Is there a background process resetting the date every second or so? What is going on here? How can I fix it?
Thanks in advance!