marcopaz / is-service-up

Monitor the status of all your cloud services in one page
Apache License 2.0
166 stars 26 forks source link

Format date in «Last Update» #8

Closed cosenal closed 8 years ago

cosenal commented 8 years ago

Last update: 291631 seconds ago --> Last update: 3 days, ...

marcopaz commented 8 years ago

It was like that before, I decided to remove it because: 1) the update should always be quite frequent so it's unlikely the time will be more than 1 minute (by default the update is every 30 seconds), 2) it makes the code more complex since we now update the timer with javascript. One possible way to do this is to use some JS library for the visualization and use a data attribute to store the time in seconds, but it'll add a dependency for very little or no gain.

cosenal commented 8 years ago

yeah, I was thinking of using moment.js for that, but I buy your point 1), updates must be very frequent indeed or it makes no sense