I am trying to change the system time using the system-config-date command and i am getting the error RunTimeError: could not open display
We are using CentOS
Changing system time
Re: Changing system time
Is this a headless server or are you using a graphical environment on the system? (you need a graphical environment to run it)
Re: Changing system time
And actually, while system-config-date is a useful utility, you don't need it to change the time. You can just edit the file /etc/sysconfig/clock to set the timezone, and use the date command to set the time:
Code: Select all
date -s "2012-09-06 15:02"