The interval shouldn't be below 60 when the timeFormat does not have minutes in it.
My patch simply checks if the timeFormat has 'mm' somewhere in it, and if not, sets the interval to 60. Could be further refined by checking if the interval is multiple of 60, then it can stay as it is, but if not then we can set it to the nearest multiple of 60.
Without this if the format has no 'mm' in it and the interval lets say is 15, then the list will contain each hour 4 times.
diff --git a/jquery.timepicker.js b/jquery.timepicker.js
old mode 100644
new mode 100755
index e969a01..68b7125
--- a/jquery.timepicker.js
+++ b/jquery.timepicker.js
@@ -627,6 +627,11 @@ if(typeof jQuery != 'undefined') {
}
var globals = $.extend({}, $.TimePicker.defaults, options);
+
+ // the interval should not be smaller than 60 if the timeFormat
+ // does not include minutes
+ if (!/mm/.test(globals.timeFormat))
+ globals.interval = 60;
return this.each(function() {
$.TimePicker.instance().register(this, globals);