better timestamps, adapt default config
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-23 14:31:15 +02:00
parent 714110edb0
commit ade5b933d8
4 changed files with 26 additions and 13 deletions
+7
View File
@@ -41,6 +41,13 @@ export default new Vuex.Store ({
.then ((res) => res.json ())
.then ((json) => json.map ((entry) => {
entry.data = JSON.parse (entry.data);
const time
= (/(?<y>[0-9]+-[0-9]+-[0-9]+)T(?<t>[0-9]+:[0-9]+:[0-9]+)/u)
.exec (
new Date (entry.timestamp)
.toISOString ()
);
entry.timestamp = `${time.groups.y} ${time.groups.t}`;
return entry;
}));
logs[source.name] = log;