Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 40407259c7
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (19 sloc) 0.845 kB
WARNING - NOT COMPATIBLE WITH RAILS 3.1+:
Do not use this with Rails 3.1+ ! Instead use the built-in :ampm option:
* http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html
* https://github.com/rails/rails/pull/343
12-HOUR TIME PLUGIN
Not all of us are adept at those exotic, 24-hour clocks. So for the rest of
us, here's a simple plugin that tacks on an AM/PM selector to the DateHelper
methods. It also handles the backend, so things are properly stored in
24-hour format.
USAGE:
<%= time_select 'event', 'time', {:twelve_hour => true} %>
AUTHORS:
Nick Muerdter (original code)
Maurice Aubrey <maurice.aubrey+12hour@gmail.com>
LICENSE:
Released under the MIT license. See the MIT-LICENSE file included
with this distribution.
HOMEPAGE:
http://code.google.com/p/rails-twelve-hour-time-plugin/
Jump to Line
Something went wrong with that request. Please try again.