diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-03 17:45:18 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-03 17:45:18 +0200 |
commit | 505c18041bebf533ec63fed3790f54f5c6e1843b (patch) | |
tree | a1e4661449e8757ac6b0ad83088759c1609ebc96 /packages/client/src/views/Home.vue | |
parent | 7ee871e391cd2d2057175d54767fc71e708e32eb (diff) |
Made a bunch of frontend stuff work
Diffstat (limited to 'packages/client/src/views/Home.vue')
-rw-r--r-- | packages/client/src/views/Home.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/client/src/views/Home.vue b/packages/client/src/views/Home.vue index 87adf4a..309fa8b 100644 --- a/packages/client/src/views/Home.vue +++ b/packages/client/src/views/Home.vue @@ -54,7 +54,7 @@ export default { const projects_data = await fetchData("repos", fetch_failed, is_loading, "projects"); projects_data.reduce((result, project) => { - project.last_updated = formatDistance(Date.parse(project.last_updated), new Date(), { addSuffix: true }); + project.last_updated = formatDistance(new Date(project.last_updated * 1000), new Date(), { addSuffix: true }); result.push(projects); return result; }, []); |