Hi Philip, thank you for the support.<br><br>I use this for generating my list:<br><br><%= time_zone_options_for_select (current_user.time_zone, TZInfo::Timezone.all_country_zones.sort) %><br><br>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?<br>
<br>Thank you,<br><br>Gp<br><br><br><div class="gmail_quote">On Wed, Apr 16, 2008 at 11:12 AM, Philip Ross <<a href="mailto:phil.ross@gmail.com">phil.ross@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="Ih2E3d"><br>
On 16/04/2008, Gianpaolo D'Ambra <<a href="mailto:gpdambra@gmail.com">gpdambra@gmail.com</a>> wrote:<br>
> Hi to everybody! My problem with tzinfo is about definitions. If I choose<br>
> from my select list Content and city name like "Europe - Athens" (list value<br>
> "Europe/Athens") everything works fine, but If I choose somenthig like<br>
> "(GMT+02:00) Athens" (so the list value "Athens") my app gives this error<br>
> when it try to define the timezone:<br>
><br>
> no such file to load -- tzinfo/definitions/Athens<br>
<br>
</div>'Athens' isn't a valid timezone identifier. If you're using TZInfo<br>
directly, you'll need to use the actual identifier, 'Europe/Athens' in<br>
this case.<br>
<br>
What are you using to display the list of timezones for selection? You<br>
should be able to arrange to display strings like '(GMT+02:00) Athens'<br>
but have the value of the associated timezone identifier<br>
('Europe/Athens').<br>
<br>
Regards,<br>
<br>
Phil<br>
<font color="#888888"><br>
--<br>
Phil Ross<br>
<a href="http://tzinfo.rubyforge.org/" target="_blank">http://tzinfo.rubyforge.org/</a> -- DST-aware timezone library for Ruby<br>
_______________________________________________<br>
TZInfo-users mailing list<br>
<a href="mailto:TZInfo-users@rubyforge.org">TZInfo-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/tzinfo-users" target="_blank">http://rubyforge.org/mailman/listinfo/tzinfo-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>GP<br>