From a827142fa4a5efebe24a2c78fdc032f5ec0956ea Mon Sep 17 00:00:00 2001 From: Nevio Di Gennaro Date: Thu, 14 Nov 2024 08:37:21 +0100 Subject: [PATCH] fix isCurrent method --- frontend/src/app/shared/types/model/Quarter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/shared/types/model/Quarter.ts b/frontend/src/app/shared/types/model/Quarter.ts index cc97f785dd..2d1c8a67c1 100644 --- a/frontend/src/app/shared/types/model/Quarter.ts +++ b/frontend/src/app/shared/types/model/Quarter.ts @@ -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(); } }