Skip to content

Commit 607577c

Browse files
author
Alexander Gitter
committed
Fix issue trentrichardson#161, don't parse hourGrid labels as octal numbers
1 parent daa38f5 commit 607577c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ $.extend(Timepicker.prototype, {
429429
var h = $(this).html();
430430
if(o.ampm) {
431431
var ap = h.substring(2).toLowerCase(),
432-
aph = parseInt(h.substring(0,2));
432+
aph = parseInt(h.substring(0,2), 10);
433433
if (ap == 'a') {
434434
if (aph == 12) h = 0;
435435
else h = aph;

0 commit comments

Comments
 (0)