From c33a17671b805e15dba1056efb3b0e79e27e4a7e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 31 Aug 2026 20:42:26 +0200 Subject: [PATCH] Bugfix/additional data point at start of chart in holding detail dialog (#7778) * Fix additional data point at start of chart in holding detail dialog * Update changelog --- CHANGELOG.md | 1 + apps/api/src/app/portfolio/portfolio.service.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2af41573..8389b0533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed the cash positions being included in the by continent, by country and by sector charts on the allocations page and the public page - Fixed the allocations in percentage exceeding 100% in the restricted view - Fixed the portfolio calculation for holdings with activities before the first known historical market price by falling back to the unit price of the activity +- Fixed the additional data point at the start of the chart in the holding detail dialog for instances running in a time zone other than UTC - Fixed the missing country mapping of _Virgin Islands (British)_ in the _Financial Modeling Prep_ service ## 3.64.0 - 2026-08-30 diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index af98200b7..3f8ff055a 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -76,6 +76,7 @@ import { } from '@ghostfolio/common/types'; import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; +import { utc } from '@date-fns/utc'; import { Inject, Injectable, Logger } from '@nestjs/common'; import { REQUEST } from '@nestjs/core'; import { @@ -995,7 +996,7 @@ export class PortfolioService { const historicalData = await this.dataProviderService.getHistorical( [{ dataSource, symbol }], 'day', - parseISO(dateOfFirstActivity), + parseISO(dateOfFirstActivity, { in: utc }), new Date() );