Commit 3a7e3ef

Vatsal Sanjay <vatsalsanjay@gmail.com>
2024-11-26 18:41:36
(fix) getMonth is 0 based. (#73)
* (fix) getMonth is 0 based. * remove log do not need the console...
1 parent e1baad0
Changed files (1)
badges
spooky-commit
badges/spooky-commit/spooky-commit.ts
@@ -9,7 +9,7 @@ export default define({
     for (const repo of data.repos) {
       for (const commit of repo.commits) {
         const data = new Date(commit.committedDate)
-        if (data.getMonth() === 10 && data.getDate() === 31) {
+        if (data.getMonth() === 9 && data.getDate() === 31) {
           commits.push(commit)
         }
       }