From 5e9ea85b83e5a00b370eef9357e2859e44f93010 Mon Sep 17 00:00:00 2001 From: Laker Turner Date: Wed, 23 Apr 2025 15:57:29 +0100 Subject: [PATCH] fixing type error on Date component --- src/components/util/Date.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/util/Date.astro b/src/components/util/Date.astro index c9b7e71..d231793 100644 --- a/src/components/util/Date.astro +++ b/src/components/util/Date.astro @@ -10,7 +10,7 @@ if (!date) { return null; } -const dateObj = typeof date === "string" ? new Date(date) : date; +const dateObj = typeof date === "string" ? new globalThis.Date(date) : date; const options: Intl.DateTimeFormatOptions = { year: "numeric", month: "long", day: "numeric" }; if (showTime) {