Please help to correct the time - Redhat

This is a discussion on Please help to correct the time - Redhat ; Hi: Here are the command outputs: under root: root>> date Sat May 7 08:45:34 CDT 2005 root>> clock Sat 07 May 2005 08:46:12 AM CDT -0.255696 seconds These results are correct. under user: user>> date Sat May 7 13:40:14 UTC ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Please help to correct the time

  1. Please help to correct the time

    Hi:
    Here are the command outputs:
    under root:
    root>> date
    Sat May 7 08:45:34 CDT 2005
    root>> clock
    Sat 07 May 2005 08:46:12 AM CDT -0.255696 seconds
    These results are correct.

    under user:
    user>> date
    Sat May 7 13:40:14 UTC 2005 <=== this is in UTC
    user>> clock
    Sat 07 May 2005 08:40:07 AM UTC -0.260498 seconds <=== this should say
    CST instead of UTC

    I realized this because the file time stamps were incorrect.

    Here is /etc/sysconfig/clock, it is correct.
    root>> cat /etc/sysconfig/clock
    ZONE="America/Chicago"
    UTC=false
    ARC=false

    How can correct this?
    Any help, or pointing to a readme file will be appreciated, I have googled
    to no avail.
    I use RH9 with all the updates.

    Thanks:
    Masoud

  2. Re: Please help to correct the time

    Masoud Pajoh wrote:
    > under root:
    > root>> date
    > Sat May 7 08:45:34 CDT 2005
    > root>> clock
    > Sat 07 May 2005 08:46:12 AM CDT -0.255696 seconds
    > These results are correct.
    >
    > under user:
    > user>> date
    > Sat May 7 13:40:14 UTC 2005 <=== this is in UTC
    > user>> clock
    > Sat 07 May 2005 08:40:07 AM UTC -0.260498 seconds <=== this should
    > say CST instead of UTC
    > How can correct this?


    See that /etc/localtime exists and is readable by all users.

    --
    Markku Kolkka
    markku.kolkka@iki.fi

+ Reply to Thread