Skip to content

Commit

Permalink
Add timezone in Months tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Feb 20, 2025
1 parent dea099c commit 22e6b78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/controllers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 22e6b78

Please sign in to comment.