From 1d3260ef8d433c627cdfe5af4ba8a5bc8583f154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 14 Jan 2025 04:57:00 -1000 Subject: [PATCH] Fix when we show next month meeting If the current month meeting has started 1h ago or more (and not is going to start in less that one hour), it is over, and we wnat to move to the next month. --- contributing/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/index.md b/contributing/index.md index b6d83f4..530d9e5 100644 --- a/contributing/index.md +++ b/contributing/index.md @@ -36,7 +36,7 @@ dayOffset = 2 - nextMeeting.day(); if (dayOffset < 0) dayOffset += 7; nextMeeting.add(dayOffset, 'days'); -if (nextMeeting.isBefore(moment.tz(eventTimeZone).add(1, 'hour'))) { +if (nextMeeting.isBefore(moment.tz(eventTimeZone).subtract(1, 'hour'))) { nextMeeting = moment.tz(eventTimeZone).startOf('month').add(1, 'month').add(1, 'week').hours(16).minutes(30); dayOffset = 2 - nextMeeting.day(); if (dayOffset < 0) dayOffset += 7;