mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Make device analytics timestamp human-readable
This commit is contained in:
parent
860072842e
commit
0af18b0255
@ -45,7 +45,14 @@ function drawTable(from, to) {
|
||||
order: [],
|
||||
ajax: {
|
||||
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;
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user