I want to make a popup list that lets the user select a time zone. What I did is that I made a list with 24 items. The minutes value that i pass to TimeZoneToAscii is equal to ((itemNum - 12) * 60). Therefore, the list items range from -720 (-12 hours) to 660 (+11 hours). Is this the correct way to list every time zone?

You might want to try using

SelectTimeZone ( &zone, &locale, "title", false, false );

That works for me.

A second problem is that TimeZoneToAscii will only give names of time zones in the country passed in the Locale structure. For instance, if I pass the United States, it will list US timezones by name such as 'USA (Eastern)', but all non US timezones are just listed by number, like 'GMT +1:00'. I tried passing lmAnyCountry, but then it just list all by number. How do I get it to list all by name?

If you pass the results of SelectTimeZone to TimeZoneAscii, it should give you the full international time zone name.


--
Regards,
Steve Mann
---
steve-at-slorevo.com
Available for Contract Work

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to