Initialize js date directly

This commit is contained in:
Chase Sterling 2016-07-09 16:08:34 -04:00
parent b3f6c311b3
commit 497f743976

View file

@ -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();
}} }
}
] ]
}); });
}); });