Hi,
I have a program using tzset() and then reading tzname[0] and tzname[1] to
detect my local timezone, my testing shows it returns wrong value on Ubuntu
karmic as well as Fedora 11. 

The samle code is as below:
tzset()
printf ("tzname[0] %s\n", tzname[0]);
printf ("tzname[1] %s\n", tzname[1]);

---
Here are the output on Ubuntu karmic:
TZ=':Asia/Shanghai' ./test 
tzname 0 CST
tzname 1 CDT

TZ=':America/Chicago' ./test 
tzname 0 CST
tzname 1 CDT

TZ=':Asia/Tokyo' ./test 
tzname 0 JST
tzname 1 JDT

What I found is it goes wrong for Asia/Shanghai timezone, the std
field(tzname[0] is ambiguous and the dst field should be empty
since China don't use Daylight saving.
-- 
Regards,

Chen Congwu
Moblin China Development

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to