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?

No. There are many time zones that don't fall on exact hour boundaries. Also, most users want to see a list of cities, where there are multiple cities in each time zone, as that provides a better chance of the user seeing a city that they know is in their same time zone. Finally, if you want to use time zone information to also help specify daylight savings rules, then you'll need to be even more precise in defining a region with the same time zone & DST settings.


Using the existing OS support for picking a time zone would be the best option, unless you need functionality that it doesn't provide.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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

Reply via email to