Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/time zone handling in api test suite for deterministic execution in UTC (#7149)

Thomas Kaul3c822928c253
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 72786a49c7..863376caea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for filtering in the public access for portfolio sharing (experimental)
- Set up the language localization for Japanese (`ja`)
+### Fixed
+
+- Fixed the time zone handling in the `api` test suite for deterministic execution in `UTC`
+
## 3.17.0 - 2026-06-26
### Added
diff --git a/apps/api/jest.config.ts b/apps/api/jest.config.ts
index b87f91a791..805710396d 100644
--- a/apps/api/jest.config.ts
+++ b/apps/api/jest.config.ts
@@ -1,4 +1,8 @@
/* eslint-disable */
+
+// Run tests in UTC for deterministic date-based calculations
+process.env.TZ = 'UTC';
+
export default {
displayName: 'api',