Skip to content

Commit 651d694

Browse files
authored
fix(tz): explicitly set timezones (#205)
1 parent 71093cb commit 651d694

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

create-node-meeting-artifacts.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ program
2626
.parse(process.argv);
2727

2828
// Step 1: Application configuration
29+
process.env.TZ = 'UTC';
30+
2931
/** @type {import('./src/types').AppConfig} */
3032
const config = {
3133
...environmentConfig,

src/calendar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ 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 = event.start?.tz;
4646
const duringOurTimeframe = event.rrule.between(weekStart, weekEnd);
4747

4848
if (duringOurTimeframe.length > 0) {

0 commit comments

Comments
 (0)