Skip to content

Scheduling infrastructure for absolutely everyone.

refactor: attendee scheduled email timezone (#22301)

Lauris Skraucis52f2c1880032
diff --git a/packages/emails/templates/attendee-scheduled-email.ts b/packages/emails/templates/attendee-scheduled-email.ts
index 0bdec1c747b..6f54588d274 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) {