Commit 7905387e by 庄冰

enbed

parent 9daf0f9f
......@@ -33,8 +33,14 @@ class tmqueryCtl extends CtlBase {
return "";
}
var date = new Date(Number(time*1000));
var y = 1900+date.getYear();
var m = "0"+(date.getMonth()+4);
var month = date.getMonth();
var year = date.getYear();
if(month>8){
month = month-8;
year = year+1;
}
var y = 1900+year;
var m = "0"+month;
var d = "0"+date.getDate();
return y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment