[uClinux-dev] TZ (resend)

Daniel Haensse haensse at swissembedded.com
Tue Aug 2 00:30:11 EDT 2005


Dear list,

I have a problem with the timezone initialisation.

A timezone is defined in the /etc/TZ file. But after boot the TZ variable is 
not set. 

echo $TZ
returns an empty string

I can type in the shell:
TZ=MEZ-1MESZ-2,M3.5.0/02,M10.5.0/03
msntp -P no -r swisstime.ee.ethz.ch 
date

and the current time is set correctly.

I can add the 
TZ=MEZ-1MESZ-2,M3.5.0/02,M10.5.0/03
in the rc script, but it does not show any effect in the shell after boot.

How can I configure the system to use the correct time zone in the rc script 
and in the shell. For some reasons, the /etc/TZ settings are not read, an 
automated configuration using the /etc/TZ settings would be best.

best regards

Dani




More information about the uClinux-dev mailing list