fixing type error on Date component

This commit is contained in:
Laker Turner 2025-04-23 15:57:29 +01:00
parent 8ac5e73d4a
commit 5e9ea85b83
No known key found for this signature in database

View file

@ -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) {