Account for funny JS months

This commit is contained in:
Regalijan 2025-06-19 16:08:01 -04:00
parent 3d8ce8356f
commit 98c662ed9b
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

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