From 22e6b78c017c672381e473b29fd88dcb9cd7e0b4 Mon Sep 17 00:00:00 2001 From: Raphaelle Cantin Date: Thu, 20 Feb 2025 08:53:04 +0000 Subject: [PATCH] Add timezone in Months tests --- api/src/controllers/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/controllers/utils.ts b/api/src/controllers/utils.ts index eef5703..aac8046 100644 --- a/api/src/controllers/utils.ts +++ b/api/src/controllers/utils.ts @@ -243,7 +243,8 @@ export const getTimespanRange = ( const startOfMonth = DateTime.local( now.year + (isInPast ? 1 : 0), - monthNumber + monthNumber, + { zone: 'Europe/London' } ); const endOfMonth = startOfMonth.endOf('month');