How do I set system wide timezone?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi John,
Quoted 5 lines · in message <[email protected]> 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.
Quoted 7 lines
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.
Quoted 1 line
I tried editing my
/etc/rc.sysinitand 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: [email protected] The software required `Windows 95 or better', so I installed Linux.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/