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) {