home page is semester-aware

This commit is contained in:
2024-12-10 11:52:53 -07:00
parent 4f9872c977
commit 4ab277d69f

View File

@@ -27,7 +27,7 @@ function groupByStartDate(courses: LocalCourseSettings[]): {
}
function getTermName(startDate: string) {
const [year, month, ...rest] = startDate.split("-");
const [year, month, ..._rest] = startDate.split("-");
if (month < "04") return "Spring " + year;
if (month < "07") return "Summer " + year;
return "Fall " + year;