Skip to content

Commit

Permalink
🐛 missing RRULE prefix for google (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidruisinger authored Oct 20, 2022
1 parent e33957f commit 339e6e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("Calendar Links", () => {
const eTime = dayjs(event.start).add(2, "hour").utc().format(TimeFormats.dateTimeUTC);
const expectedDates = encodeURIComponent(`${sTime}/${eTime}`);
expect(link).toBe(
`https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${expectedDates}&recur=FREQ%3DYEARLY%3BINTERVAL%3D1&text=Birthday%20party`
`https://calendar.google.com/calendar/render?action=TEMPLATE&dates=${expectedDates}&recur=RRULE%3AFREQ%3DYEARLY%3BINTERVAL%3D1&text=Birthday%20party`
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const google = (calendarEvent: CalendarEvent): string => {
location: event.location,
trp: event.busy,
dates: start + "/" + end,
recur: event.rRule,
recur: event.rRule ? "RRULE:" + event.rRule : undefined,
};
if (event.guests && event.guests.length) {
details.add = event.guests.join();
Expand Down

0 comments on commit 339e6e4

Please sign in to comment.