From a3ff985652cb76209c347ecb9c852d114c29addb Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 13:11:30 +0100 Subject: fixed date epg --- js/istreamdev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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('
  • ' + epgdate + '
  • '); if ( data.category.length > 1 ) -- cgit v1.2.3