timezones via TZ

hinko.kocevar at cetrtapot.si hinko.kocevar at cetrtapot.si
Fri Jan 13 10:28:12 UTC 2006


Hi,

I've been trying to set correct timezone for my location - CET-1. The 
problem is, that if I use /etc/TZ instead of exporting TZ variable I 
always get UTC time returned by date. A soon as I export the TZ variable 
from shell date shows correct time.

~ # date
Fri Jan 13 07:23:12 UTC 2006
~ # cat /etc/TZ
CET-1
~ # date
Fri Jan 13 07:23:34 UTC 2006
~ # export TZ=CET-1
~ # date
Fri Jan 13 08:23:44 CET 2006

This is hexdump of /etc/TZ (I know there are some issues with empty 
lines and similar):
~ # hexdump -c /etc/TZ
0000000   C   E   T   -   1  \n
0000006

What am I missing?!

regards,
hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenija
Tel. +386 (0) 4 280 66 37
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si




More information about the busybox mailing list