Greetings;

Yes, but /etc/localtime can point to any timezone. It does
not have to be hardware local time.

In Debian there are many timezone files in /usr/share/zoneinfo
and I suspect that other distribs have the same or similar.

Look for files with timezone names. eg. EST, Poland, Greenwich, etc.

There are commands to help you do this. Try   man -k tz

Also, the TZ variable may be set in the .profile to
change the effective timezone for individual users.

Good Luck!
Dennis



                    Rob van der
                    Heij                  To:     [EMAIL PROTECTED]
                    <[EMAIL PROTECTED]       cc:
                    m>                    Subject:     Re: Setting hardware clock
                    Sent by: Linux
                    on 390 Port
                    <[EMAIL PROTECTED]
                    ARIST.EDU>


                    06/11/2004
                    03:16 AM
                    Please respond
                    to Linux on 390
                    Port






Ranga Nathan wrote:

>Our Linux LPAR is coming up with the local time. However we need it to be
>adjusted by -1 hour (for our HQ time). I am not sure how we can do this at
>boot-up time. Perhaps there is a way to set the hardware clock from the
>console, but I did not see it on HMC. There is a script called
>/etc/init.d/boot.clock that seems to adjust the hardware clock but the
>program it refers to (/sbin/hwclock) does not even exist!
>
>Can someone enlighten me please?
>
>
Your zSeries hardware clock should run UTC. Period. You will have to set
that on the HMC / SE. At IPL the LPAR picks up the clock from the hardware.

Linux expects the real clock to be UTC as well, so that fits nicely.
Because Linux sometimes runs on dual-boot platforms where another
operating system requires the hardware (RTC CMOS) clock in local time,
there is a weird hack in Linux that allows it to apply the reverse
offset of local time once during boot to compensate for this
restriction. Because local time changes with DST this is tricky and
avoided at best (I have learned to live with my appointments being one
hour off for two week per year).

The Linux kernel gets the UTC clock from the LPAR clock and uses the
timezone information from /etc/localtime to make your local time offset
and shifts for daylight savings time according to your local schedule
for that. The current device drivers and tools with Linux for zSeries do
not exploit the facilities to adjust the offset between LPAR and
hardware clock. You might consider to run NTP to keep you clock in sync,
but with the initial clock one hour off it will step the clock with that
amount and it may confuse some processes in Linux.

Rob

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to