From ec4bdc3b7cf277b5e3f31418922dc3f763d0fb3c Mon Sep 17 00:00:00 2001 From: carkom Date: Fri, 5 Apr 2024 20:04:32 +0100 Subject: [PATCH] fix bug --- packages/desktop-client/src/components/reports/reportRanges.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/reports/reportRanges.ts b/packages/desktop-client/src/components/reports/reportRanges.ts index 52a79c1d211..588c56291e1 100644 --- a/packages/desktop-client/src/components/reports/reportRanges.ts +++ b/packages/desktop-client/src/components/reports/reportRanges.ts @@ -48,7 +48,7 @@ export function validateEnd( let dateEnd; switch (interval) { case 'Monthly': - dateEnd = end + '-31'; + dateEnd = monthUtils.getMonthEnd(end + '-01'); subDays = 180; break; case 'Yearly':