Skip to content

smtlaissezfaire/12_hour_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

Homepage:
http://code.google.com/p/rails-twelve-hour-time-plugin/