Fix issue #161, don't parse hourGrid labels as octal numbers

This commit is contained in:
Alexander Gitter 2011-06-11 06:12:13 +02:00
parent daa38f5ef3
commit 607577cefa

View file

@ -429,7 +429,7 @@ $.extend(Timepicker.prototype, {
var h = $(this).html();
if(o.ampm) {
var ap = h.substring(2).toLowerCase(),
aph = parseInt(h.substring(0,2));
aph = parseInt(h.substring(0,2), 10);
if (ap == 'a') {
if (aph == 12) h = 0;
else h = aph;