From 04906ceefaec22d1ca5eb309e1738ab2f1ad60e7 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 26 Feb 2025 17:39:48 +0100 Subject: [PATCH] bugfixing --- src/routes/potus-tracker/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/potus-tracker/+page.svelte b/src/routes/potus-tracker/+page.svelte index 716651f6..0e65f328 100644 --- a/src/routes/potus-tracker/+page.svelte +++ b/src/routes/potus-tracker/+page.svelte @@ -34,6 +34,7 @@ day: "2-digit", month: "short", year: "numeric", + timeZone: "UTC", }).format(new Date(item.date)); if (!acc[dateKey]) acc[dateKey] = []; @@ -46,6 +47,7 @@ day: "2-digit", month: "short", year: "numeric", + timeZone: "UTC", }).format(new Date(item.date)); if (!acc[dateKey]) acc[dateKey] = []; @@ -337,7 +339,7 @@ class="max-h-[600px] overflow-y-auto border border-gray-800 rounded-md p-4 no-scrollbar" >
- {#each Object.entries(groupedByDate) as [date, items], indexA} + {#each Object?.entries(groupedByDate) as [date, items], indexA}