From a111387a3f4cfbe66db5d9d95c1c245489ac71b7 Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 13 Jul 2023 20:10:06 +1000 Subject: [PATCH] fix date in banner not using UTC --- resources/js/components/SMEventCard.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/components/SMEventCard.vue b/resources/js/components/SMEventCard.vue index 130a340..faea303 100644 --- a/resources/js/components/SMEventCard.vue +++ b/resources/js/components/SMEventCard.vue @@ -8,7 +8,7 @@ :style="{ backgroundImage: `url('${mediaGetVariantUrl( props.event.hero, - 'medium' + 'medium', )}')`, }">
{ * @returns The converted string. */ const formatDateDay = (date: string) => { - return new SMDate(date, { format: "yMd" }).format("dd"); + return new SMDate(date, { format: "yMd", utc: true }).format("dd"); }; /** @@ -150,7 +150,7 @@ const formatDateDay = (date: string) => { * @returns The converted string. */ const formatDateMonth = (date: string) => { - return new SMDate(date, { format: "yMd" }).format("MMM"); + return new SMDate(date, { format: "yMd", utc: true }).format("MMM"); }; /**