Skip to content

Commit 7fff0b4

Browse files
committed
fix: Incorrect Times/Timezones when fetching events from the Community calendar
1 parent c65b549 commit 7fff0b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/index.page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ function printEventsForNextWeeks(icalData: { [x: string]: any }) {
9898

9999
// Complicated case - if an RRULE exists, handle multiple recurrences of the event
100100
if (event.rrule) {
101-
const dates = event.rrule.between(today.toDate(), nextFourWeeksEnd.toDate(), true);
101+
const dates = event.rrule.between(
102+
today.toDate(),
103+
nextFourWeeksEnd.toDate(),
104+
true,
105+
);
102106

103107
// Loop through the set of date entries
104108
for (const date of dates) {

0 commit comments

Comments
 (0)