Web Hosting Talk







View Full Version : How to change server time ?


ABW
06-08-2001, 03:03 PM
Hi,

I've got a server with redhat on it and I wanted to know how to change the time on the server definitively (so that i don't have to change it again) because I don't live in the same timezone as my server.

Hope you can help :)

Planet Z
06-08-2001, 03:38 PM
Your best bet is to install a program like ntpd. This way, your server clock will always be accurate (regular computer clocks tend to lose or gain time).

http://www.eecis.udel.edu/~ntp/

Duster
06-08-2001, 03:56 PM
You can use the timeconfig command. You really should have a book like Red Hat Linux Unleashed and learn about server management.

JonnyQuags
06-08-2001, 04:03 PM
You could do this:

date 060816022001

this would set time/date to june 8th 16:02 2001

Or check out the rdate command

rdate -s nist1.aol-va.truetime.com would also set it (just one of many time servers)

Madman2020
06-09-2001, 03:21 PM
Originally posted by Tcoy
You could do this:

date 060816022001

this would set time/date to june 8th 16:02 2001

Or check out the rdate command

rdate -s nist1.aol-va.truetime.com would also set it (just one of many time servers)

You can also set your hardware clock with /sbin/hwclock. Do a "man hwclock" before you proceed though.