Skip to content

Commit

Permalink
Merge pull request #411 from voxpupuli/fix-monthly-meetup
Browse files Browse the repository at this point in the history
Fix when we show next month meeting
  • Loading branch information
smortex authored Jan 14, 2025
2 parents 61a2787 + 1d3260e commit 0c0a946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c0a946

Please sign in to comment.