Revert workaround for testing
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
6256fe0dcd
commit
b6b83e3fb2
|
@ -191,11 +191,11 @@ export function getCurrentTerm(): { year: string; term: string } {
|
|||
term = "winter";
|
||||
} else if (
|
||||
new Date(`${year}-05-01 EST`).getTime() <= date.getTime() &&
|
||||
date.getTime() <= new Date(`${year}-09-02 EST`).getTime()
|
||||
date.getTime() <= new Date(`${year}-08-31 EST`).getTime()
|
||||
) {
|
||||
term = "spring";
|
||||
} else if (
|
||||
new Date(`${year}-09-03 EST`).getTime() <= date.getTime() &&
|
||||
new Date(`${year}-09-01 EST`).getTime() <= date.getTime() &&
|
||||
date.getTime() <= new Date(`${year}-12-31 EST`).getTime()
|
||||
) {
|
||||
term = "fall";
|
||||
|
@ -209,7 +209,6 @@ function getPastTerm(
|
|||
term: string
|
||||
): { year: string; term: string } {
|
||||
const index = TERMS.indexOf(term);
|
||||
|
||||
if (index === -1) {
|
||||
throw new Error("Not a valid term");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue