From 52f2c1880032e8bda3637defbd2fa3b674be4a9c Mon Sep 17 00:00:00 2001 From: Lauris Skraucis Date: Tue, 8 Jul 2025 12:16:22 +0200 Subject: [PATCH] refactor: attendee scheduled email timezone (#22301) --- packages/emails/templates/attendee-scheduled-email.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/emails/templates/attendee-scheduled-email.ts b/packages/emails/templates/attendee-scheduled-email.ts index 0bdec1c747..6f54588d27 100644 --- a/packages/emails/templates/attendee-scheduled-email.ts +++ b/packages/emails/templates/attendee-scheduled-email.ts @@ -73,13 +73,11 @@ ${getRichDescription(this.calEvent, this.t)} } protected getTimezone(): string { - // Timezone is based on the first attendee in the attendee list - // as the first attendee is the one who created the booking - return this.calEvent.attendees[0].timeZone; + return this.attendee.timeZone; } protected getLocale(): string { - return this.calEvent.attendees[0].language.locale; + return this.attendee.language.locale; } protected getInviteeStart(format: string) {