Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show dates as human readable #3

Closed
jgoodall opened this issue Mar 24, 2015 · 2 comments
Closed

Show dates as human readable #3

jgoodall opened this issue Mar 24, 2015 · 2 comments

Comments

@jgoodall
Copy link
Member

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

@jgoodall
Copy link
Member Author

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.

@gerth
Copy link

gerth commented Mar 25, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants