Skip to content

Commit

Permalink
-SIPC-/time: fix days in decemeber (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Apr 14, 2024
1 parent 927c0a3 commit 1aeb6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/-SIPC-/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
return 0;
}
const monthIndex = Math.round(Scratch.Cast.toNumber(args.MONTH));
if (monthIndex < 0 || monthIndex >= 12) {
if (monthIndex < 0 || monthIndex >= 13) {
return 0;
}
const date = new Date(year, monthIndex, 0);
Expand Down

0 comments on commit 1aeb6af

Please sign in to comment.