From 8d210929b16b477c7c55afe26549e21879a3e69a Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Tue, 23 May 2023 11:58:55 +0200 Subject: [PATCH] fixes timezone of even date variable (#9059) Co-authored-by: CarinaWolli Co-authored-by: Peer Richelsen --- .../ee/workflows/lib/reminders/templates/customTemplate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts b/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts index 3ab7debf9a..72e13ef513 100644 --- a/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts +++ b/packages/features/ee/workflows/lib/reminders/templates/customTemplate.ts @@ -1,5 +1,6 @@ import { guessEventLocationType } from "@calcom/app-store/locations"; import type { Dayjs } from "@calcom/dayjs"; +import dayjs from "@calcom/dayjs"; import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants"; import type { CalEventResponses } from "@calcom/types/Calendar"; @@ -30,7 +31,7 @@ const customTemplate = ( month: "long", day: "numeric", year: "numeric", - }).format(variables.eventDate?.toDate()); + }).format(variables.eventDate?.add(dayjs().tz(variables.timeZone).utcOffset(), "minute").toDate()); let locationString = variables.location || "";