[TZInfo-users] GMT definitions

Gianpaolo D'Ambra gpdambra at gmail.com
Wed Apr 16 05:32:22 EDT 2008


Hi Philip, thank you for the support.

I use this for generating my list:

<%= time_zone_options_for_select (current_user.time_zone,
TZInfo::Timezone.all_country_zones.sort) %>

At the moment I didn't find anything better. "My wish" is to list only
'(GMT+02:00) *city*' but with th correct values, but I haven't found
anything googling. Could you help me?

Thank you,

Gp


On Wed, Apr 16, 2008 at 11:12 AM, Philip Ross <phil.ross at gmail.com> wrote:

> Hi,
>
> On 16/04/2008, Gianpaolo D'Ambra <gpdambra at gmail.com> wrote:
> > Hi to everybody! My problem with tzinfo is about definitions. If I
> choose
> > from my select list Content and city name like "Europe - Athens" (list
> value
> > "Europe/Athens") everything works fine, but If I choose somenthig like
> > "(GMT+02:00) Athens" (so the list value "Athens") my app gives this
> error
> > when it try to define the timezone:
> >
> > no such file to load -- tzinfo/definitions/Athens
>
> 'Athens' isn't a valid timezone identifier. If you're using TZInfo
> directly, you'll need to use the actual identifier, 'Europe/Athens' in
> this case.
>
> What are you using to display the list of timezones for selection? You
> should be able to arrange to display strings like '(GMT+02:00) Athens'
> but have the value of the associated timezone identifier
> ('Europe/Athens').
>
> Regards,
>
> Phil
>
> --
> Phil Ross
> http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby
> _______________________________________________
> TZInfo-users mailing list
> TZInfo-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/tzinfo-users
>



-- 
GP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/tzinfo-users/attachments/20080416/08ea60fe/attachment-0001.html 


More information about the TZInfo-users mailing list