From 5650f2561d91f1c109de4c8c39978b57fbb0622c Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 1 Dec 2024 01:05:43 -0500 Subject: [PATCH] Display correct month on outstanding page --- app/routes/events-team_.outstanding.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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--; }