On Monday, July 25, 2016 at 10:50:25 AM UTC-7, [email protected] wrote:
>
> How can I  present to user a list of available timezons for him to choose 
> from, in a web2py application.
> nothing to do with user's own time zone or server's time zone.
> Basically I could create a table with all time zones (found on wikipidia) 
> and populate a listbox to choose from.
> Is there a better way using a python library ?
> Thanks in advance
>

The tzinfo class of datetime has this reference
<URL:https://pypi.python.org/pypi/pytz/>

and a reference to the Totally Official List:
<URL:http://www.iana.org/time-zones>
 
Some people recommend showing the offset from UTC, because of ambiguities 
in timezone names, although some of those ambiguities aren't a problem if 
you have additional context (e.g., an example city:  "EST (New York City)".)

See also the discussion under tzinfo.tzname()
<URL:https://docs.python.org/2/library/datetime.html#tzinfo-objects>

/dps



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to