From 607577cefaeffc3729e8e336e3f761bcfc61f634 Mon Sep 17 00:00:00 2001 From: Alexander Gitter Date: Sat, 11 Jun 2011 06:12:13 +0200 Subject: [PATCH] Fix issue #161, don't parse hourGrid labels as octal numbers --- jquery-ui-timepicker-addon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index a41dbd4..8197d54 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -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;