From 90bfc06761dfcaf119fdb4dcbe92d6364721dee8 Mon Sep 17 00:00:00 2001 From: Alib Date: Mon, 1 Mar 2010 13:38:20 +0100 Subject: fixed taimer with month with one char --- javascript/functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'javascript') diff --git a/javascript/functions.js b/javascript/functions.js index 86811ff..7b0e492 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -69,7 +69,8 @@ function openSelectDate(timer_year,timer_month,timer_day) { var months = { '01': 'Jan', '02': 'Feb', '03': 'Mar', '04': 'Apr', '05': 'May','06': 'Jun', '07': 'Jul', '08': 'Aug', '09': 'Sep', '10': 'Oct', '11': 'Nov', '12': 'Dec' }; for( var i = 1; i < 32; i += 1 ) { - days[i] = str_pad(i, 2, '0', 'STR_PAD_LEFT'); + i = str_pad(i, 2, '0', 'STR_PAD_LEFT'); + days[i] = i; } for( i = now.getFullYear(); i < now.getFullYear()+5; i += 1 ) { -- cgit v1.2.3