Skip to content

High performance self-hosted photo and video management solution.

fix(server): set unit test timezone to UTC (#16805)

Jonathan Jogenfors6bb0aa217c79
diff --git a/server/test/vitest.config.mjs b/server/test/vitest.config.mjs
index 92fc027d40..071e4886f2 100644
--- a/server/test/vitest.config.mjs
+++ b/server/test/vitest.config.mjs
@@ -2,6 +2,9 @@ import swc from 'unplugin-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
+// Set the timezone to UTC to avoid timezone issues during testing
+process.env.TZ = 'UTC';
+
export default defineConfig({
test: {
root: './',