From 4c62c7c97f5b85aea520f82e4f52c61e95a825d1 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 21 Jun 2021 19:30:00 +0000 Subject: [PATCH] Included missing dayjs plugins --- lib/emails/EventAttendeeMail.ts | 7 +++++++ lib/emails/EventOrganizerMail.ts | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/emails/EventAttendeeMail.ts b/lib/emails/EventAttendeeMail.ts index b8bef1ba21..55f231f939 100644 --- a/lib/emails/EventAttendeeMail.ts +++ b/lib/emails/EventAttendeeMail.ts @@ -1,6 +1,13 @@ import dayjs, {Dayjs} from "dayjs"; import EventMail from "./EventMail"; +import utc from 'dayjs/plugin/utc'; +import timezone from 'dayjs/plugin/timezone'; +import localizedFormat from 'dayjs/plugin/localizedFormat'; +dayjs.extend(utc); +dayjs.extend(timezone); +dayjs.extend(localizedFormat); + export default class EventAttendeeMail extends EventMail { /** * Returns the email text as HTML representation. diff --git a/lib/emails/EventOrganizerMail.ts b/lib/emails/EventOrganizerMail.ts index 86c23e420b..6d3060b6ca 100644 --- a/lib/emails/EventOrganizerMail.ts +++ b/lib/emails/EventOrganizerMail.ts @@ -2,6 +2,15 @@ import {createEvent} from "ics"; import dayjs, {Dayjs} from "dayjs"; import EventMail from "./EventMail"; +import utc from 'dayjs/plugin/utc'; +import timezone from 'dayjs/plugin/timezone'; +import toArray from 'dayjs/plugin/toArray'; +import localizedFormat from 'dayjs/plugin/localizedFormat'; +dayjs.extend(utc); +dayjs.extend(timezone); +dayjs.extend(toArray); +dayjs.extend(localizedFormat); + export default class EventOrganizerMail extends EventMail { /** * Returns the instance's event as an iCal event in string representation.