Initialize js date directly
This commit is contained in:
parent
b3f6c311b3
commit
497f743976
|
@ -34,10 +34,10 @@
|
||||||
{ "data": "message" },
|
{ "data": "message" },
|
||||||
{ "data": "time",
|
{ "data": "time",
|
||||||
"render": function (data) {
|
"render": function (data) {
|
||||||
var date = new Date(0);
|
var date = new Date(data * 1000);
|
||||||
date.setUTCSeconds(data)
|
|
||||||
return date.toDateString();
|
return date.toDateString();
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue