diff options
author | Alib <aliboba@free.fr> | 2010-03-01 13:38:20 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-01 13:38:20 +0100 |
commit | 90bfc06761dfcaf119fdb4dcbe92d6364721dee8 (patch) | |
tree | 8250b95ba2f31b1c3e99e75630c82afd95106b9e | |
parent | 69cab74c78ffd17cfdb56a4551e0ed50530ff4ac (diff) | |
download | istreamdev-90bfc06761dfcaf119fdb4dcbe92d6364721dee8.tar.gz istreamdev-90bfc06761dfcaf119fdb4dcbe92d6364721dee8.tar.bz2 |
fixed taimer with month with one char
-rwxr-xr-x | javascript/functions.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) {
|