stucco/ui

Show dates as human readable

Closed this issue · 2 comments

Dates are currently shown as milliseconds since the epoch. Show them as human-readable UTC date strings.

Any field that matches field.indexOf("Date") !== -1 will automatically be converted to a UTC date string. This is done in the jade template. Commit: 9e8111f.

I updated the UI (below) but am still seeing bigints of ms since epoch for startTime in Hone flows
which are the only nodes I know of with datetime values, e.g.
http://10.10.10.100:8000/flow/35584
...yields

Name 10.32.92.230:56649::69.42.215.170:6667
Description 10.32.92.230, port 56649 to 69.42.215.170, port 6667
startTime 1371770984855
totalPkts 11
source Hone
totalBytes 612

update with commit 9e8111f

root@stucco:# supervisorctl stop stucco-ui
stucco-ui: stopped
root@stucco:
# cd /stucco/ui
root@stucco:/stucco/ui# git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 4), reused 5 (delta 4), pack-reused 0
Unpacking objects: 100% (5/5), done.
From https://github.com/stucco/ui
49a7153..9e8111f master -> origin/master
Updating 49a7153..9e8111f
Fast-forward
templates/includes/extraProps.jade | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
root@stucco:/stucco/ui# supervisorctl start stucco-ui
stucco-ui: started
root@stucco:/stucco/ui# exit