Skip to content
Snippets Groups Projects
Commit 240abb78 authored by Wes Felter's avatar Wes Felter
Browse files

UI: Make host last seen human readable instead of a Unix timestamp.

parent 15695d78
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ window.HostCollection = Backbone.Collection.extend({
h.swport = _.reduce(h['attachmentPoint'], function(memo, ap) {
return memo + ap.switchDPID + "-" + ap.port + " "}, "");
//console.log(h.swport);
h.lastSeen = new Date(h.lastSeen).toLocaleString();
self.add(h, {silent: true});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment