From 2767c006ee86f8bb4256b332697ee8005183fd32 Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Sun, 12 Oct 2025 22:03:35 -0400 Subject: [PATCH] this probably should make things make more sense haha --- src/routes/b/[id]/+page.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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} -- 2.51.2