Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix monthly events query
  • Loading branch information
regalijan committed Feb 22, 2024
1 parent 41d5935 commit f2b546b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/events-team/events/new.ts
Expand Up @@ -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();

Expand Down

0 comments on commit f2b546b

Please sign in to comment.