diff --git a/functions/api/events-team/events/new.ts b/functions/api/events-team/events/new.ts index eeb9325..fa0a83f 100644 --- a/functions/api/events-team/events/new.ts +++ b/functions/api/events-team/events/new.ts @@ -3,7 +3,7 @@ import { jsonError } from "../../../common.js"; export async function onRequestPost(context: RequestContext) { const { day, details, type } = context.data.body; const now = new Date(); - const currentMonth = now.getUTCMonth(); + const currentMonth = now.getUTCMonth() + 1; const currentYear = now.getUTCFullYear(); const lastDayOfMonth = new Date(currentYear, currentMonth, 0).getUTCDate();