View Full Version : how to adjust server time
sander815
04-03-2004, 03:21 AM
our server is off by 11 minutes from my local time, how can i adjust it?
does it also adjust automatically from winter to summer time?
ProWebUK
04-03-2004, 06:23 AM
rdate -s time.nist.gov
Chris
nobaloney
04-03-2004, 08:19 AM
Whether or not your server will adjust automatically for Daylight Savings Time will depend on the OS and on how it was installed.
Red Hat Linux will automatically adjust for Daylight Savings Time if it was set up with the hardware clock set for ZT (GMT). Otherwise it won't.
I guess you'll find out tomorrow morning :) .
Jeff
neorder
04-05-2004, 08:03 PM
i use this command:
date 010115302004
to set date to jan 1, 15:30pam and 2004.
nobaloney
04-06-2004, 10:08 AM
On what OS, neorder?
On RHL I use:
date -s "Tue Apr 6 10:08:05 PDT 2004"
That sets the software clock.
The hardware clock is set from the software clock on system shutdown.
Jeff
ProWebUK
04-06-2004, 10:30 AM
Originally posted by jlasman
On what OS, neorder?
On RHL I use:
date -s "Tue Apr 6 10:08:05 PDT 2004"
That sets the software clock.
The hardware clock is set from the software clock on system shutdown.
Jeff
Date works, but wont actually change the TZ, even if the one you specify is not what its using... it randomly chnages between 3 main ones for me, i usually use tzselect to get the time sync then rdate to sync it every now and then, or even put it in a cron job.
You can also set the hardware clock without shutting down by running:
set HW clock using system clock
hwclock --systohc
Set system clock using HW clock:
hwclock --hctosys
and also set the HW clock manually...
You may want to read through the manual pages if you wish to find out anymore :)
Chris
Firehosting
04-09-2004, 12:15 PM
Originally posted by jlasman
On what OS, neorder?
On RHL I use:
date -s "Tue Apr 6 10:08:05 PDT 2004"
That sets the software clock.
The hardware clock is set from the software clock on system shutdown.
Jeff
What's the command with FreeBSD?
Above wont work :(
Thanx,
Marcel.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.