Forum: Ruby on Rails time select with am/pm?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (danieldaniel)
on 2006-05-18 23:02
(Received via mailing list)
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
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 seth b. (subimage)
on 2006-05-20 04:27
(Received via mailing list)
I'd like to see an AM/PM select as well...this 24h clock is lame.
365c8238c216cfb90572ef1086c0cb0e?d=identicon&s=25 lester bangs (Guest)
on 2006-05-21 20:19
(Received via mailing list)
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 Higginbotham
<daniel@flyingmachinestudios.com
> > 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.
Df0a460118ef876e45b13b8c1a471454?d=identicon&s=25 Marston A. (marstoni)
on 2006-05-21 23:15
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
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (danieldaniel)
on 2006-05-22 03:29
(Received via mailing list)
Sweet, thanks!
This topic is locked and can not be replied to.