From 056b318d86541c2820b33f50c8fac2531bc98991 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 18 Apr 2022 11:31:16 +0200 Subject: [PATCH] Bugfix/fix end date in ics files (#841) * Fix end date * Update changelog --- CHANGELOG.md | 1 + .../pages/portfolio/transactions/transactions-page.component.ts | 2 +- apps/client/src/app/services/ics/ics.service.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59ecfeb7e..67bb0e886 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed an issue with changing the investment horizon in the chart of the _FIRE_ calculator +- Fixed an issue with the end dates in the `.ics` file of the future activities (drafts) export - Fixed the data source of the _Fear & Greed Index_ (market mood) ## 1.138.0 - 16.04.2022 diff --git a/apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts b/apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts index 9e94b305e..1717dbbda 100644 --- a/apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts +++ b/apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts @@ -181,7 +181,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit { contentType: 'text/calendar', fileName: `ghostfolio-draft${ data.activities.length > 1 ? 's' : '' - }-${format(parseISO(data.meta.date), 'yyyyMMddHHmm')}.ics`, + }-${format(parseISO(data.meta.date), 'yyyyMMddHHmmss')}.ics`, format: 'string' }); }); diff --git a/apps/client/src/app/services/ics/ics.service.ts b/apps/client/src/app/services/ics/ics.service.ts index bad9a514c..1163fa786 100644 --- a/apps/client/src/app/services/ics/ics.service.ts +++ b/apps/client/src/app/services/ics/ics.service.ts @@ -52,7 +52,6 @@ export class IcsService { `UID:${id}`, `DTSTAMP:${today}T000000`, `DTSTART;VALUE=DATE:${format(date, this.ICS_DATE_FORMAT)}`, - `DTEND;VALUE=DATE:${format(date, this.ICS_DATE_FORMAT)}`, `SUMMARY:${capitalize(type)} ${symbol}`, 'END:VEVENT' ].join(this.ICS_LINE_BREAK);