From 772d3188f2402db49303c9483ed7b44fb3def030 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 4 Apr 2022 22:32:19 -0600 Subject: [PATCH] misc.arsched: month is 0 indexed --- src/modules/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/misc.js b/src/modules/misc.js index e088642..a0228b5 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -284,7 +284,7 @@ arsched.callback = async function (msg, line) { const delta = (targetDay + 7 - currentDay) % 7; let currentYear = now.getUTCFullYear(); - const currentMonth = now.getUTCMonth(); + const currentMonth = now.getUTCMonth() + 1; const currentDateDay = now.getUTCDate(); let targetMonth = currentMonth; const lastDay = new Date(currentYear, currentMonth, 0).getDate();