From 149a1fae1da91f7664daba23639320f29478d629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krzeslak?= Date: Fri, 2 Oct 2026 15:43:39 +0200 Subject: [PATCH] test: set runtime's timezone to utc --- tests/preload.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/preload.ts b/tests/preload.ts index 7fd7470e..44288038 100644 --- a/tests/preload.ts +++ b/tests/preload.ts @@ -28,6 +28,11 @@ for (const name of [ delete process.env[name]; } +// TZ is read as TIMEZONE for the times on the history page. Deleting it would not help: +// Bun would fall back to the system timezone instead of bun test's UTC default (or keep +// the shell's zone). Assigning it switches the runtime timezone as well, so pin it. +process.env.TZ = "UTC"; + // Several pages import uploadsDir/outputDir from src/index.tsx. Importing the real module // would start the server, spawn every converter's --version and schedule the job cleanup, // and its relative ./data paths would mix test files with real conversions. Provide the