diff --git a/src/routes/b/[id]/+page.svelte b/src/routes/b/[id]/+page.svelte index ced3088..405e16f 100644 --- a/src/routes/b/[id]/+page.svelte +++ b/src/routes/b/[id]/+page.svelte @@ -29,10 +29,12 @@ {/if} {#if data.ban.till}

- {#if data.ban.till > Date.now()} - the ban will end on {dumbAbsoluteTimestamp(data.ban.till)}. + {#if Date.parse(data.ban.till) > Date.now()} + the ban will end on {dumbAbsoluteTimestamp( + Date.parse(data.ban.till), + )}. {:else} - the ban ended {smartAbsoluteTimestamp(data.ban.till)} + the ban ended {smartAbsoluteTimestamp(Date.parse(data.ban.till))} {/if}

{/if}