[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fw: error message



> > > if i want to change the time to
> > > Wed Mar 8 6:16:00 PST 2000    --what do i do?

In order to keep proper time you need to make sure /etc/default/rcS has
the correct settings, /etc/init.d/hwclock.sh has been tweaked
to your liking, and you've run tzconfig.  Except for the tweaking of
hwclock.sh, this should all have been done when the system was
installed.

To actually set the time,
try:	date --set="Wed Mar 8 6:16:00 PST 2000"
then	hwclock --systohc	# if the hw clock runs standard time
or	hwclock --utc --systohc	# if the hw clock runs GMT

The above commands will set the system (software) clock to the time you
specify and the hardware clock from the system clock.  This is usually
what you want to do when the time is really messed up, in which case you
should also execute:
	rm /etc/adjtime
and	echo "0.0 0 0.0" > /etc/adjtime
if you have been using the --adjust feature of hwclock.

If you are making a minor adjustment then use the 'date --set="..."' (or
equiv.) command, and let the system look after the hw clock
automatically when you reboot.


- Bruce


Reply to: