Skip to content

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

Bugfix/fix date conversion in import of historical market data (#2994)

Thomas Kaulcc0ce186270e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e0de98ff0..c565ad38b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Replaced `import-sort` with `prettier-plugin-sort-imports`
- Upgraded `Nx` from version `17.2.8` to `18.0.4`
+### Fixed
+
+- Fixed the date conversion of the import of historical market data in the admin control panel
+
## 2.50.0 - 2024-02-11
### Added
diff --git a/apps/api/src/app/admin/admin.controller.ts b/apps/api/src/app/admin/admin.controller.ts
index 0c724ba2b8..40ba85759e 100644
--- a/apps/api/src/app/admin/admin.controller.ts
+++ b/apps/api/src/app/admin/admin.controller.ts
@@ -256,7 +256,7 @@ export class AdminController {
dataSource,
marketPrice,
symbol,
- date: resetHours(parseISO(date)),
+ date: parseISO(date),
state: 'CLOSE'
})
);