diff options
author | Alib <aliboba@free.fr> | 2010-03-26 13:11:30 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-26 13:11:30 +0100 |
commit | a3ff985652cb76209c347ecb9c852d114c29addb (patch) | |
tree | d0ee9e3f2141bc1b3417362389f3b78c4541738c /js/istreamdev.js | |
parent | d1f4f1e4f2b3aabebb06323b8929d42227e00139 (diff) | |
download | istreamdev-a3ff985652cb76209c347ecb9c852d114c29addb.tar.gz istreamdev-a3ff985652cb76209c347ecb9c852d114c29addb.tar.bz2 |
fixed date epg
Diffstat (limited to 'js/istreamdev.js')
-rw-r--r-- | js/istreamdev.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index c9668ff..04e59df 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1079,8 +1079,8 @@ function parse_epg(data,selectedvalue,type,day){ var date_milli=date.getTime();
date.setTime(date_milli+(86400000*day));
var date_year = date.getFullYear();
- var date_month = date.getMonth()+1;
- var date_day = date.getDate();
+ var date_month = str_pad(date.getMonth()+1,2,'0','STR_PAD_LEFT');
+ var date_day = str_pad(date.getDate(),2,'0','STR_PAD_LEFT');
var epgdate = date_year + "-" + date_month + "-" + date_day;
$('#epglist #ul_epglist').append('<li rel="epgdate" class="sep">' + epgdate + '</li>');
if ( data.category.length > 1 )
|