Skip to content

Commit dee9112

Browse files
committed
fix(timezone): force PST
1 parent 71093cb commit dee9112

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/calendar.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ export const findNextMeetingDate = async (allEvents, { properties }) => {
4242

4343
for (const event of filteredEvents) {
4444
// Get all recurrences in our timeframe
45-
event.rrule.options.tzid = event.tzid;
45+
event.rrule.options.tzid = 'PST';
4646
const duringOurTimeframe = event.rrule.between(weekStart, weekEnd);
4747

4848
if (duringOurTimeframe.length > 0) {
49+
console.log(duringOurTimeframe)
4950
return duringOurTimeframe[0];
5051
}
5152
}

0 commit comments

Comments
 (0)