Skip to content

Commit

Permalink
fix isCurrent method
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Nov 14, 2024
1 parent 4b6382c commit a827142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/shared/types/model/Quarter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class Quarter {
if (this.startDate === null || this.endDate === null) {
return false;
}
return this.startDate <= new Date() && this.endDate >= new Date();
return new Date(this.startDate) <= new Date() && new Date(this.endDate) >= new Date();
}
}

0 comments on commit a827142

Please sign in to comment.