Account for funny JS months
This commit is contained in:
parent
3d8ce8356f
commit
98c662ed9b
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user