From 505c18041bebf533ec63fed3790f54f5c6e1843b Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Sat, 3 Jul 2021 17:45:18 +0200
Subject: Made a bunch of frontend stuff work

---
 packages/client/src/views/Home.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/client/src/views/Home.vue')

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;
 			}, []);
-- 
cgit v1.2.3-18-g5258

