Skip to content

Commit d177896

Browse files
committed
fix: Year
1 parent 1d8e90b commit d177896

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/app/_components/Recruitment.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export async function RecruitmentBanner() {
1919
<UserRoundIcon className="h-4 w-4" />
2020
<AlertTitle>Recruitment open!</AlertTitle>
2121
<AlertDescription>
22-
Apply to become a part of Armada {DateTime.now().year}
22+
Apply to become a part of Armada{" "}
23+
{/* 2 months since pg recruitment usually starts in nov/dec */}
24+
{DateTime.now().plus({ months: 2 }).year}{" "}
2325
</AlertDescription>
2426
</Alert>
2527
</Link>

src/app/student/layout.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default async function ExhibitorLayout({
2424
<NavigationMenu
2525
aside={
2626
<Link
27-
href={`https://ais.armada.nu/fairs/${DateTime.now().year}/recruitment`}>
27+
/* 2 months to account for pg recruitment which usually starts the previous year in nov/dec */
28+
href={`https://ais.armada.nu/fairs/${DateTime.now().plus({ months: 2 }).year}/recruitment`}>
2829
<Button variant={"outline"}>Apply for Armada</Button>
2930
</Link>
3031
}

0 commit comments

Comments
 (0)