Do date formatting for history view server side for consistency.

This commit is contained in:
Chase Sterling 2016-07-09 20:10:46 -04:00
parent bc0876cf33
commit 15924df4e2
2 changed files with 4 additions and 6 deletions

View file

@ -64,12 +64,7 @@
}
},
{ "data": "message" },
{ "data": "time",
"render": function (data) {
var date = new Date(data * 1000);
return date.toDateString();
}
}
{ "data": "date" }
],
rowCallback: function( row, data, index ) {
index += $('.dataTable').DataTable().page.info().start;