Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Display correct month on outstanding page
  • Loading branch information
regalijan committed Dec 1, 2024
1 parent 0378491 commit 5650f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/events-team_.outstanding.tsx
Expand Up @@ -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--;
}
Expand Down

0 comments on commit 5650f25

Please sign in to comment.