fixes timezone of even date variable (#9059)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
i18n-cache^2
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
1 changed files with 2 additions and 1 deletions

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