diff --git a/extensions/-SIPC-/time.js b/extensions/-SIPC-/time.js index b47ff88fe5..97ae135b5e 100644 --- a/extensions/-SIPC-/time.js +++ b/extensions/-SIPC-/time.js @@ -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);