On Sunday 03 April 2005 07:53, David Busby wrote:
> List,
>    I some how have my time settings in all messed up state.
>
> I want to keep my hardware clock in UTC but have my Server in
> America/Los_Angles
>
> So Here's what I have
>
> hydrogen root # grep -R CLOCK /etc/*
> /etc/init.d/clock:      if [ "${CLOCK}" = "UTC" ]
> /etc/init.d/clock:      if [ "${CLOCK}" = "UTC" ]
> /etc/rc.conf:# Set CLOCK to "UTC" if your system clock is set to UTC
> (also known as
> /etc/rc.conf:# Greenwich Mean Time).  If your clock is set to the local
> time, then set CLOCK
> /etc/rc.conf:CLOCK="local"
                                    ^^^^

While your hardware clock is set to GMT your system "thinks" its local. Here 
is what you need to do:

First, edit /etc/rc.conf (or better /etc/conf.d/clock because that is the 
current way to do it) and set CLOCK to "UTC". Then set your system clock to 
your correct local time by using the command "date". Remove /etc/adjtime. 
Lastly, adjust your hardware clock by using "hwclock -uw". From now on, 
everything should be fine.

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
--
gentoo-user@gentoo.org mailing list

Reply via email to