Browse Source

Fix end date

pull/841/head
Thomas 3 years ago
parent
commit
f84f3e50dd
  1. 2
      apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts
  2. 1
      apps/client/src/app/services/ics/ics.service.ts

2
apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts

@ -181,7 +181,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
contentType: 'text/calendar', contentType: 'text/calendar',
fileName: `ghostfolio-draft${ fileName: `ghostfolio-draft${
data.activities.length > 1 ? 's' : '' data.activities.length > 1 ? 's' : ''
}-${format(parseISO(data.meta.date), 'yyyyMMddHHmm')}.ics`, }-${format(parseISO(data.meta.date), 'yyyyMMddHHmmss')}.ics`,
format: 'string' format: 'string'
}); });
}); });

1
apps/client/src/app/services/ics/ics.service.ts

@ -52,7 +52,6 @@ export class IcsService {
`UID:${id}`, `UID:${id}`,
`DTSTAMP:${today}T000000`, `DTSTAMP:${today}T000000`,
`DTSTART;VALUE=DATE:${format(date, this.ICS_DATE_FORMAT)}`, `DTSTART;VALUE=DATE:${format(date, this.ICS_DATE_FORMAT)}`,
`DTEND;VALUE=DATE:${format(date, this.ICS_DATE_FORMAT)}`,
`SUMMARY:${capitalize(type)} ${symbol}`, `SUMMARY:${capitalize(type)} ${symbol}`,
'END:VEVENT' 'END:VEVENT'
].join(this.ICS_LINE_BREAK); ].join(this.ICS_LINE_BREAK);

Loading…
Cancel
Save