fixes timezone of even date variable (#9059)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
Carina Wollendorfer 2023-05-23 11:58:55 +02:00 committed by GitHub
parent 49757010ba
commit 8d210929b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 || "";