linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: How do I set system wide timezone?
       [not found] <20011111201822.85707.qmail@web20107.mail.yahoo.com>
@ 2001-11-11 21:35 ` Wolfgang Denk
  0 siblings, 0 replies; only message in thread
From: Wolfgang Denk @ 2001-11-11 21:35 UTC (permalink / raw)
  To: John Francis; +Cc: ppcboot-users, linuxppc-embedded


Hi John,

in message <20011111201822.85707.qmail@web20107.mail.yahoo.com> you wrote:
>
> I have RTC on my board and I am setting clock
> correctly using PPCBoot's date command. I can read it
> back when I am in PPCboot before booting 860's RTC is
> being set to value read from RTC.

I think you know, but just to be sure: PPCBoot does  not  know  about
timezones, so you must set the time in PPCBoot to UTC.

> Now when linux boots the time is way off, but if I
> explicitly set my TZ environment variable, to export
> TZ=PDT the time displayed by linux is also correct.
> But my daemons are still reporting UTC based time.
> Where do I configure the fact that time should be read
> with timzone of PDT ( Pacific Daylight savings). Is
> this something I can pass to the kernel at boot?

This depends on distribution and things like that.

> I tried editing my /etc/rc.sysinit and setting TZ

No. Make sure /etc/localtime is  correct,  and  make  sure  the  boot
scripts  know  that  the  RTC  stores the time in UTC - under RedHat,
check that /etc/sysconfig/clock has a correct entry for  "ZONE",  and
that there is a line "UTC=true".

Hope this helps,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
The software required `Windows 95 or better', so I installed Linux.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-11 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20011111201822.85707.qmail@web20107.mail.yahoo.com>
2001-11-11 21:35 ` How do I set system wide timezone? Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).