-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
30 lines (19 loc) · 845 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 <[email protected]>
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/