Merge branch 'master' into 'master'

Make device analytics timestamp human-readable

Closes product-iots#139

See merge request entgra/carbon-device-mgt!234
4.x.x
Charitha Goonetilleke 5 years ago
commit 12e19b9862

@ -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;
})
}
}
});
}
@ -71,4 +78,4 @@ function buildAjaxData (){
return obj;
}
}

Loading…
Cancel
Save