From 240abb786a0067f0fb09fe7050579abf6c9b07b7 Mon Sep 17 00:00:00 2001 From: Wes Felter <wmf@us.ibm.com> Date: Wed, 13 Jun 2012 18:36:14 -0500 Subject: [PATCH] UI: Make host last seen human readable instead of a Unix timestamp. --- src/main/resources/web/js/models/hostmodel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/web/js/models/hostmodel.js b/src/main/resources/web/js/models/hostmodel.js index 5d86d3622..ec37d1573 100644 --- a/src/main/resources/web/js/models/hostmodel.js +++ b/src/main/resources/web/js/models/hostmodel.js @@ -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}); } }); -- GitLab