Fix issue #161, don't parse hourGrid labels as octal numbers
This commit is contained in:
parent
daa38f5ef3
commit
607577cefa
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -429,7 +429,7 @@ $.extend(Timepicker.prototype, {
|
||||||
var h = $(this).html();
|
var h = $(this).html();
|
||||||
if(o.ampm) {
|
if(o.ampm) {
|
||||||
var ap = h.substring(2).toLowerCase(),
|
var ap = h.substring(2).toLowerCase(),
|
||||||
aph = parseInt(h.substring(0,2));
|
aph = parseInt(h.substring(0,2), 10);
|
||||||
if (ap == 'a') {
|
if (ap == 'a') {
|
||||||
if (aph == 12) h = 0;
|
if (aph == 12) h = 0;
|
||||||
else h = aph;
|
else h = aph;
|
||||||
|
|
Loading…
Reference in a new issue