Hi,<br><br><div class="gmail_quote">On Wed, Apr 16, 2008 at 12:52 PM, 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;">
<div class="Ih2E3d">Hi,<br>
<br>
On 16/04/2008, Gianpaolo D'Ambra <<a href="mailto:gpdambra@gmail.com">gpdambra@gmail.com</a>> wrote:<br>
</div><div class="Ih2E3d">> I use this for generating my list:<br>
><br>
> <%= time_zone_options_for_select (current_user.time_zone,<br>
> TZInfo::Timezone.all_country_zones.sort) %><br>
<br>
</div>You need to specify the model parameter to make<br>
time_zone_options_for_select work with TZInfo:<br>
<br>
<%= time_zone_options_for_select(current_user.time_zone, nil,<br>
TZInfo::Timezone) %><br>
<br>
The second parameter is actually a list of priority zones rather than<br>
the complete list, so does not need to be specified.<br>
<div class="Ih2E3d"><br>
> At the moment I didn't find anything better. "My wish" is to list only<br>
> '(GMT+02:00) *city*' but with th correct values, but I haven't found<br>
> anything googling. Could you help me?<br>
<br>
</div>The above code will give you a list of all the timezones, but probably<br>
not in the format you want. You may want to take a look at the Rails<br>
TzinfoTimezone and TzTime plugins to see if they do what you need.<br>
<div><div></div><div class="Wj3C7c"><br>
Regards,<br>
<br>
Phil<br>
<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>
</div></div></blockquote></div><br><br clear="all">thanks Phil! I have to specify a model! Now everything is working well! Thank you very much for your help! <br><br>Bye<br><br>Gp<br>