1
0
Fork 0

Easier to read uptime

This commit is contained in:
Ava Gaiety Wroten 2019-12-25 22:49:19 -06:00
parent d265303a94
commit 1bffd9e49d

View file

@ -68,7 +68,7 @@ new Vue({
this.fetchingUptime = showAsFetching; this.fetchingUptime = showAsFetching;
try { try {
let { data } = await axios.get('/api/uptime'); let { data } = await axios.get('/api/uptime');
this.uptime = data.uptime; this.uptime = moment(data.uptime, 'HH:MM DD-MM-YYYY').fromNow();
this.fetchingUptime = false; this.fetchingUptime = false;
} catch (err) { throw new Error(err); } } catch (err) { throw new Error(err); }
}, },