mirror of
https://github.com/BluemediaGER/fancy-gatus.git
synced 2024-11-22 14:45:29 +01:00
format timestamp
This commit is contained in:
parent
3ac190e747
commit
27f679146e
|
@ -19,6 +19,9 @@ export default {
|
||||||
while (tmp.length < 20) {
|
while (tmp.length < 20) {
|
||||||
tmp.unshift({});
|
tmp.unshift({});
|
||||||
}
|
}
|
||||||
|
for (let t of tmp) {
|
||||||
|
t.timestamp = new Date(t.timestamp).toLocaleString();
|
||||||
|
}
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue