From 679dfabb9289ced6ec20aa5ef26f2cb77c3a2740 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 11 Jan 2025 01:17:21 -0500 Subject: [PATCH] Fix Date Bug --- commands/commit-count.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/commit-count.js b/commands/commit-count.js index c4606e0..25587ba 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -204,7 +204,7 @@ module.exports = { if (validDays.includes(formattedDay)) { dayMap.set(formattedDay, true); } - else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString())) { + else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString().padStart(2, 0))) { invalidString += `${formattedDay}\n`; dayMap.set(formattedDay, false); }