From 3cd3b7fad9689d8bd4e941d77045167dd0f30ef2 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Thu, 7 Nov 2024 10:05:55 -0500 Subject: [PATCH] fix(web): time zone dependent test (#13859) --- web/src/lib/utils/timeline-util.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/lib/utils/timeline-util.spec.ts b/web/src/lib/utils/timeline-util.spec.ts index 4643ae121862c..f842b948e060e 100644 --- a/web/src/lib/utils/timeline-util.spec.ts +++ b/web/src/lib/utils/timeline-util.spec.ts @@ -5,11 +5,13 @@ import { DateTime } from 'luxon'; describe('formatGroupTitle', () => { beforeAll(() => { vi.useFakeTimers(); + process.env.TZ = 'UTC'; vi.setSystemTime(new Date('2024-07-27T12:00:00Z')); }); afterAll(() => { vi.useRealTimers(); + delete process.env.TZ; }); it('formats today', () => {