Do date formatting for history view server side for consistency.
This commit is contained in:
parent
bc0876cf33
commit
15924df4e2
2 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue