http://railsontherun.com/2007/12/21/timezone-selection
You are using TZInfo::Timezone.all.sort, in my example I use TZInfo::
Timezone.us_zones which is probably what you are after.
-Matt
On 1/17/08, Jon Buda <[EMAIL PROTECTED]> wrote:
>
>
> hey all,
>
> haven't been too active in the group yet, but I'll try to make the
> next meeting. It's been tough getting there on time. certainly some
> good info flying around the list.
>
> I've implemented tzinfo_timezone plugin in a project of mine and
> everything is working just fine as far as time zone conversions go,
> but I was wondering if anyone who has used it knows of a way to reduce
> the size of the drop-down menu created from plugin. Currently I am
> doing:
>
> <%= time_zone_select 'user', 'time_zone',
> TZInfo::Timezone.all.sort, :model => TZInfo::Timezone, :include_blank
> => true %>
>
> This results in a drop-down menu several hundred items long which
> seems like overkill to me. I could reduce it down to just listing the
> GMT offsets, but seriously how many people know their GMT offset? I
> know I don't without looking it up. It's an international site so I
> can't just limit it to US time zones.
>
> Any ideas on how to make this thing a little more user friendly?
>
> Thanks in advance,
> Jon Buda
>
> >
>
--
--------
http://railsontherun.com
--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---