I need to change system time and date on my xubuntu to do some QA testing does anyone know how to do it? I tried going into system manager -> time and date setting every time i change the time it keeps going back to current time.
Asked
Active
Viewed 3,433 times
2 Answers
5
This works for me on Ubuntu 18.04
Disable the NTP server
sudo timedatectl set-ntp false sudo timedatectl set-time "2019-12-30 $(date +%R:%S)"The result.
emmet@ansmachine:~$ date Mon Des 30 05:08:21 CET 2019 emmet@ansmachine:~$ date Mon Des 30 05:08:22 CET 2019 emmet@ansmachine:~$ date Mon Des 30 05:08:23 CET 2019If you want to go back to original dates (pre-changes), just enable the NTP once again.
sudo timedatectl set-ntp true
Liso
- 15,677
1
solve it. I had to install the ntp setting first to prevent the system to automatically change time and date.
sudo apt-get install ntp
unlock the date system -> change to manual -> then it works
Nanda Christanto
- 73
- 1
- 4