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 <[EMAIL PROTECTED]> wrote:

> Hi,
>
> On 16/04/2008, Gianpaolo D'Ambra <[EMAIL PROTECTED]> 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
> [email protected]
> http://rubyforge.org/mailman/listinfo/tzinfo-users
>



-- 
GP
_______________________________________________
TZInfo-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/tzinfo-users

Reply via email to