Timezone wrong


Subject: Timezone wrong
From: Paul J. Lucas (pauljlucas@mac.com)
Date: Wed Sep 05 2001 - 00:21:47 MDT


On Tue Jun 12 2001, Robert Story <rstory-l@revelstone.com> wrote:

> I can't seem to get my clock set properly in YDL 2.0. When rc.sysinit does
> it's thing at boot time, it correctly reads the local time from the
> hardware clock, and calls settimeofday (info gleaned by adding --debug to
> the default starting arguments), but doesn't have the timezone info set
> correcty for some reason (tz argument is 0).
>
> If I extract the rc.sysint stuff into a separate file (rc.clock) and call
> it from rc.local, the time is set correctly (settimeofday tz offset is 300,
> not zero). Why doesn't rc.sysint work correctly?

        I've got the same problem. /etc/rc.sysinit doesn't bother to
        do anything with the ZONE variable defined in /etc/sysconfig/clock
        so in rc.sysinit, I inserted:

                TZ="$ZONE"; export TZ

        to be line 102 right before:

                /sbin/hwclock $CLOCKFLAGS

        and this fixes it. However, I just check the scripts and files
        in my old YDL 1.1 installation and they don't look at ZONE or TZ
        either, so it's not clear how YDL 1.1 got it right but 2.0 gets
        it wrong.

        - Paul



This archive was generated by hypermail 2a24 : Tue Sep 04 2001 - 23:29:52 MDT