diff --git a/webclient/src/utils/__tests__/date.spec.js b/webclient/src/utils/__tests__/date.spec.js index aa27049..9cc2307 100644 --- a/webclient/src/utils/__tests__/date.spec.js +++ b/webclient/src/utils/__tests__/date.spec.js @@ -5,7 +5,7 @@ beforeEach(() => { vi.useFakeTimers(); // Use local time to match how parseDate works - vi.setSystemTime(new Date("2026-06-08T12:00:00")); + vi.setSystemTime(new Date(Date.UTC(2026, 5, 8, 12, 0, 0))); }); afterEach(() => { diff --git a/webclient/src/utils/date.js b/webclient/src/utils/date.js index 2974e9c..a1ef6d7 100644 --- a/webclient/src/utils/date.js +++ b/webclient/src/utils/date.js @@ -93,7 +93,7 @@ if (match) { const [, year, month, day, hours, mins, secs] = match; - return new Date(year, parseInt(month) - 1, day, hours, mins, secs); + return new Date(Date.UTC(year, parseInt(month) - 1, day, hours, mins, secs)); } // Try ISO format and other standard formats