Set Time

Just noticed that my server is running 5 hours behind my time, puzzled me why Cron’s werent running when i expected them to. Is there a way in Interworx (if there is it will be in nodeworx right???) to set the Date/Time or Timezone? As i cannot seem to do this from ssh so does interworx have such a feature or not?

Thanks

Andrew

I’ve never seen any way to do this through NodeWorx, but can be done pretty easily via SSH.

Ijust did a google search for “set timezone linux” and found this link:
http://www.linuxsa.org.au/tips/time.html

It may vary a little depending on the distro you have, but that link should get you started.

Are you can setup NTP and the time will be automatically corrected, following these instructions (nb: no warranty given or implied)

rpm -q ntp

//If it comes back with a version it’s already installed

pico -w /etc/ntp.conf

restrict default nomodify notrap noquery
restrict 127.0.0.1
server now.okstate.edu
server clock.nyc.he.net
server clock.via.net
server ntp-2.vt.edu
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift

pico -w /etc/ntp/step-tickers

now.okstate.edu
clock.nyc.he.net
clock.via.net
ntp-2.vt.edu

/sbin/chkconfig --level 345 ntpd on
/sbin/service ntpd restart

//To view how it’s running:
ntpq -p localhost

How does that know the TZ though?