Account for funny JS months

This commit is contained in:
2025-06-19 16:08:01 -04:00
parent 3d8ce8356f
commit 98c662ed9b

View File

@ -88,7 +88,7 @@ export async function onRequestPatch(context: RequestContext) {
if (
date.getUTCFullYear() !== eventData.year ||
date.getUTCMonth() !== eventData.month
date.getUTCMonth() + 1 !== eventData.month
)
return jsonError(
"Only events in the current month period can be rescheduled",