nasa/cumulus-dashboard

More information for timestamp

Closed this issue · 2 comments

screen shot 2017-08-31 at 1 00 56 pm

I don't think it does this now but for the timestamp, especially on the homepage it would be great if they had a bit more information. For example, instead of 18:48:35 08/24/17 if the incoming errors or the incoming granules had 15 seconds ago, or 5 seconds ago...

Disregard, obviously if the system already does this :)

There's a fromNow function in utils/format.js that does just this. To change the formatting from the current style, just require that function and sub it out for the fullDate function here.

Timestamps are now all using the 5 seconds ago format.