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

Re: FIX FOR HAMM: timezone problem



Nathan E Norman <finn@midco.net> writes:

> : It didn't work here.  I use xntp3 to sync my clock, and it would
> : always get set to Eastern time until I changed to CST6CDT.  After
> : making that change, it now gives results like yours.
> 
> Ok, fair enough.  I'm assuming you have the same program versions
> installed as I do?  Do you have your hardware clock set to UTC or local
> time?  (Someone said this is a red herring, but I'd like to know that
> for certain).
> 

My clock is supposedly set to UTC.  When I originally installed, it
wasn't, and there was no documentation for changing it, but I figured
that I needed to add a -u to the appropriate init script.  Here then
is /etc/init.d/hwclock.sh:

GMT=-u
#
#	Set and adjust the CMOS clock.
#
if [ ! -f /etc/adjtime ]
then
	echo "0.0 0 0.0" > /etc/adjtime
fi
if [ -x /sbin/hwclock ]
then
	[ "$GMT" = "-u" ] && GMT="--utc"
	hwclock --adjust $GMT
	hwclock --hctosys $GMT
else
	[ "$GMT" = "--utc" ] && GMT="-u"
	clock -a $GMT
fi

#
#	Now that /usr/lib/zoneinfo should be available,
#	announce the local time.
#
if [ "$VERBOSE" != no ]
then
	echo
	echo "Local time: `date`"
	echo
fi

> Mine is set to UTC.
> 
> --
> Nathan Norman
> MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD  57104

Cool; my uncle lives just outside Sioux Falls and works there.  He
also is a volunteer chairman for the Minn-Kota sale in the Arena
each year, if you've ever been to it.

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
Visit the Air Capitol Linux Users Group on the web at http://www.aclug.org


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: