diff --git a/src/hooks/useReportsPeriod.test.ts b/src/hooks/useReportsPeriod.test.ts index ad880f7..5fc0da8 100644 --- a/src/hooks/useReportsPeriod.test.ts +++ b/src/hooks/useReportsPeriod.test.ts @@ -3,8 +3,9 @@ import { resolveReportsPeriod, parseAccountIds, serializeAccountIds } from "./us describe("resolveReportsPeriod", () => { // A day far from the clock: a range computed from `new Date()` instead of - // the given day ends elsewhere, and these tests go red. - const fixedToday = new Date("2026-04-14T12:00:00Z"); + // the given day ends elsewhere, and these tests go red. Local noon, so it is + // April 14 in every time zone (noon UTC is already April 15 in UTC+12). + const fixedToday = new Date(2026, 3, 14, 12); /** « Cette année » on that day: January 1st to that day (#479). */ const YEAR_TO_DATE = { from: "2026-01-01", to: "2026-04-14", period: "year" };