From cc0ce186270e9041c51153d1491294293fa4dcdd Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:21:22 +0100 Subject: [PATCH] Bugfix/fix date conversion in import of historical market data (#2994) * Fix date conversion * Update changelog --- CHANGELOG.md | 4 ++++ apps/api/src/app/admin/admin.controller.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e0de98ff..c565ad38b 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 0c724ba2b..40ba85759 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' }) );