goupviet / jquery-timepicker

Automatically exported from code.google.com/p/jquery-timepicker
0 stars 0 forks source link

12-hour picker on a 24-hour field #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This a bug, but I would like to contribute my changes back to the community and 
see no other way 
than here. This plugin also seems to no longer be under active development.

I found this plugin not very usable as-is since it reads and writes in 12-hour 
format. While most 
people (strangely) prefer 12 hour format for interacting with, databases are 24 
hour. While I could 
have converted the format with scripting on the back-end, I preferred to have 
the picker display 
12-hour but read/write 24-hour.

I also added a colon between the hour and the minute select lists and a space 
between the minute 
and the am/pm list.

I have included tomsalfield (issue 3) and jasonalanharris' (issue 5) changes as 
well.

Original issue reported on code.google.com by wade.she...@gmail.com on 30 Dec 2009 at 11:28

Attachments:

GoogleCodeExporter commented 9 years ago
Correction: "This IS NOT a bug…".

I also changed the hours and minutes arrays such that the hours no longer have 
leading zeros and the minutes 
are every five instead of every fifteen.

Original comment by wade.she...@gmail.com on 30 Dec 2009 at 11:33