Make device analytics timestamp human-readable

This commit is contained in:
Turcy 2019-09-05 16:25:22 +05:30
parent 860072842e
commit 0af18b0255

View File

@ -45,7 +45,14 @@ function drawTable(from, to) {
order: [], order: [],
ajax: { ajax: {
url: "/devicemgt/api/stats/paginate", url: "/devicemgt/api/stats/paginate",
data: buildAjaxData data: buildAjaxData,
dataSrc: function(json) {
return json.data.map(function(event) {
event[0] = new moment(event[0]).
format("YYYY-MM-DD HH:mm:ss.SSS");
return event;
})
}
} }
}); });
} }