Fix timestamps in sist2-admin #359

This commit is contained in:
2023-05-25 20:51:06 -04:00
parent 6bf2b4c74d
commit f0fd708082
5 changed files with 11 additions and 13 deletions

View File

@@ -44,8 +44,7 @@ export default {
return "";
}
const date = Date.parse(dateString);
return moment(date).fromNow();
return moment.utc(dateString).local().fromNow();
}
}
}

View File

@@ -121,7 +121,7 @@ export default {
id: row.id,
name: row.name,
duration: this.taskDuration(row),
time: moment(row.started).format("dd, MMM Do YYYY, HH:mm:ss"),
time: moment.utc(row.started).local().format("dd, MMM Do YYYY, HH:mm:ss"),
logs: row.id,
status: row.return_code === 0 ? "ok" : "failed"
}));