diff --git a/app/routes/events-team_.outstanding.tsx b/app/routes/events-team_.outstanding.tsx index 9c40f92..b5d6d7e 100644 --- a/app/routes/events-team_.outstanding.tsx +++ b/app/routes/events-team_.outstanding.tsx @@ -29,10 +29,10 @@ import { useEffect, useState } from "react"; export async function loader({ context }: { context: RequestContext }) { const now = new Date(); - let month = now.getUTCMonth() + 1; + let month = now.getUTCMonth(); let year = now.getUTCFullYear(); - if (month - 1 === 0) { + if (month === 0) { month = 12; year--; }