From 7dd31ce43d7c2c437678b63fc7e6ff4e99173ded Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Mon, 4 Jul 2022 21:25:13 +0200 Subject: [PATCH] fix share time string --- webapp/src/routes/note/[id].svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/routes/note/[id].svelte b/webapp/src/routes/note/[id].svelte index bd11e9d..8a9ec8a 100644 --- a/webapp/src/routes/note/[id].svelte +++ b/webapp/src/routes/note/[id].svelte @@ -44,7 +44,7 @@ }); $: if (note.insert_time) { - const diff_ms = new Date().valueOf() - note.insert_time.valueOf(); + const diff_ms = new Date().valueOf() - new Date(note.insert_time).valueOf(); timeString = msToString(diff_ms); }