From daf6dd9f4e88fc2dc64e10675879f00449b9f8d6 Mon Sep 17 00:00:00 2001 From: Akis Date: Sat, 6 Aug 2022 10:35:08 +0300 Subject: [PATCH] fix time again --- src/routes/index.svelte | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 0c417a3..e0e7f81 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -20,10 +20,6 @@ import IconTriangleExclamation from "~icons/fa6-solid/triangle-exclamation"; import dayjs from "dayjs"; - - const formattedTime = dayjs(announcements.created).format( - "DD/MM/YYYY HH:mm" - ); @@ -53,7 +49,9 @@ {/if} - {formattedTime} + {dayjs.unix(announcements.created).format( + "DD/MM/YYYY HH:mm" + )}