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" + )}