From b33cfcec713cbe1b1cffd563a527d4e9d5654843 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 12 Nov 2025 16:56:22 -0500 Subject: [PATCH] fix(tz): explicitly set timezones --- create-node-meeting-artifacts.mjs | 2 ++ src/calendar.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/create-node-meeting-artifacts.mjs b/create-node-meeting-artifacts.mjs index 860a218..0af5267 100644 --- a/create-node-meeting-artifacts.mjs +++ b/create-node-meeting-artifacts.mjs @@ -26,6 +26,8 @@ program .parse(process.argv); // Step 1: Application configuration +process.env.TZ = 'UTC'; + /** @type {import('./src/types').AppConfig} */ const config = { ...environmentConfig, diff --git a/src/calendar.mjs b/src/calendar.mjs index aa4112e..c1282ec 100644 --- a/src/calendar.mjs +++ b/src/calendar.mjs @@ -42,7 +42,7 @@ export const findNextMeetingDate = async (allEvents, { properties }) => { for (const event of filteredEvents) { // Get all recurrences in our timeframe - event.rrule.options.tzid = event.tzid; + event.rrule.options.tzid = event.start?.tz; const duringOurTimeframe = event.rrule.between(weekStart, weekEnd); if (duringOurTimeframe.length > 0) {