From da0accc30419a902e29c468a80d90582949b4b2a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 30 Dec 2024 17:25:10 -0600 Subject: [PATCH] Attempt at fixing a 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 a715d5d..3cb4bc2 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -86,7 +86,7 @@ module.exports = { monthName = 'Jan.'; } - const mapKey = monthName + ' ' + messageDate.getDate().toString(); + const mapKey = monthName + ' ' + (messageDate.getDate() - 1).toString(); if (messageMap.has(mapKey)) { const mapValue = messageMap.get(mapKey);