Browse Source

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
pull/7780/head
Thomas Kaul 1 week ago
committed by GitHub
parent
commit
c33a17671b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 3
      apps/api/src/app/portfolio/portfolio.service.ts

1
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 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 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 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 - Fixed the missing country mapping of _Virgin Islands (British)_ in the _Financial Modeling Prep_ service
## 3.64.0 - 2026-08-30 ## 3.64.0 - 2026-08-30

3
apps/api/src/app/portfolio/portfolio.service.ts

@ -76,6 +76,7 @@ import {
} from '@ghostfolio/common/types'; } from '@ghostfolio/common/types';
import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type';
import { utc } from '@date-fns/utc';
import { Inject, Injectable, Logger } from '@nestjs/common'; import { Inject, Injectable, Logger } from '@nestjs/common';
import { REQUEST } from '@nestjs/core'; import { REQUEST } from '@nestjs/core';
import { import {
@ -995,7 +996,7 @@ export class PortfolioService {
const historicalData = await this.dataProviderService.getHistorical( const historicalData = await this.dataProviderService.getHistorical(
[{ dataSource, symbol }], [{ dataSource, symbol }],
'day', 'day',
parseISO(dateOfFirstActivity), parseISO(dateOfFirstActivity, { in: utc }),
new Date() new Date()
); );

Loading…
Cancel
Save