Skip to content

Commit

Permalink
fixed academic year
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiscauwel committed May 18, 2024
1 parent b499069 commit 8cc45ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/composables/useAcademicYear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default function useAcademicYear(): number {
// If the current date is before September 15, the default selected academic year is the current year.
// Otherwise, the academic year is the next year.
if (currentMonth < 8 || (currentMonth === 8 && currentDay < 15)) {
return currentYear - 2000;
return currentYear - 1 - 2000;
} else {
return currentYear + 1 - 2000;
return currentYear - 2000;
}
}

0 comments on commit 8cc45ae

Please sign in to comment.