Fixes timezone in reminder templates (workflows) (#3376)

* fix time zone in reminder template

* fix timezone in email subject

* add missing timezone

* fix date in sms reminder template

* use organizer time zone if message send to host

* fix build error

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Omar López <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-07-14 19:05:01 -04:00
1 parent 9162d90504
commit 75b817531e
7 files changed
+51 -30

No files matched your search

+18 -6
View File
@@ -334,8 +334,12 @@ export const workflowsRouter = createProtectedRouter()
return { name: attendee.name, email: attendee.email, timeZone: attendee.timeZone };
}),
organizer: booking.user
? { name: booking.user.name || "", email: booking.user.email }
: { name: "", email: "" },
? {
name: booking.user.name || "",
email: booking.user.email,
timeZone: booking.user.timeZone,
}
: { name: "", email: "", timeZone: "" },
startTime: booking.startTime.toISOString(),
title: booking.title,
};
@@ -485,8 +489,12 @@ export const workflowsRouter = createProtectedRouter()
return { name: attendee.name, email: attendee.email, timeZone: attendee.timeZone };
}),
organizer: booking.user
? { name: booking.user.name || "", email: booking.user.email }
: { name: "", email: "" },
? {
name: booking.user.name || "",
email: booking.user.email,
timeZone: booking.user.timeZone,
}
: { name: "", email: "", timeZone: "" },
startTime: booking.startTime.toISOString(),
title: booking.title,
};
@@ -578,8 +586,12 @@ export const workflowsRouter = createProtectedRouter()
return { name: attendee.name, email: attendee.email, timeZone: attendee.timeZone };
}),
organizer: booking.user
? { name: booking.user.name || "", email: booking.user.email }
: { name: "", email: "" },
? {
name: booking.user.name || "",
email: booking.user.email,
timeZone: booking.user.timeZone,
}
: { name: "", email: "", timeZone: "" },
startTime: booking.startTime.toISOString(),
title: booking.title,
};