Time select with am/pm?


#1

Hi everyone,

Is there a time select helper which uses a 12 hour clock rather than a
24
hour one? Also, does anyone know if :discard_year actually works in
datetime_select now, or how I could find this out?

Thanks!
Daniel


#2

I’d like to see an AM/PM select as well…this 24h clock is lame.


#3

subimage interactive <subimage@…> writes:

I’d like to see an AM/PM select as well…this 24h clock is lame.

On 5/18/06, Daniel H.
<removed_email_address@domain.invalid

wrote:Hi everyone,Is there a time select helper which
uses a 12 hour clock rather than a 24
hour one? […]

Third…ed. I’m surprised this is not part of ActionView’s
basic functionality.


#4

Yes, I was dealing with and asking these same questions a few weeks ago.
I’ve found an excellent solution from a plugin called flex_times. I
guess the name fits as it is very flexible with date and time selectors.
I finally got my 12 hour time selectors to play nicely with my time
column type in MySQL. Check it out:

http://wiki.rubyonrails.org/rails/pages/FlexTimes+Plugin


#5

Sweet, thanks!