<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>466383</bug_id>
          
          <creation_ts>2023-02-24 23:46:29 +0000</creation_ts>
          <short_desc>iCalendar exporter doesn&apos;t meet ics/vcs format standards</short_desc>
          <delta_ts>2023-12-23 11:42:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>exporter</component>
          <version>5.1.3</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Lawrence McRye">laumacry</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/-/commit/1f3e9aa4509b8ff77b703f53a8bf455a28f8600b</cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2211534</commentid>
    <comment_count>0</comment_count>
    <who name="Lawrence McRye">laumacry</who>
    <bug_when>2023-02-24 23:46:29 +0000</bug_when>
    <thetext>SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Configure ics file options (KMYmoney Preferences-&gt; iCalendar plugin)
2. Export scheduled transactions (File\Export\Scheduled transactions to iCalendar file ([ &lt;filenpath&gt;\&lt;filename&gt;]
3. Import file from Outlook  (Microsoft® Outlook® para Microsoft 365 MSO (versión 2301 compilación 16.0.16026.20196) de 64 bits)


OBSERVED RESULT
A ics/vcs file is generated (step 2) but when importing from Outlook desktop (step 3)  the app issues a message indicating that there&apos;s no appointments within the file. 

EXPECTED RESULT
The events/alarms are imported correctly into a new (or existing) calendar in MS Outlook

SOFTWARE/OS VERSIONS
Windows: 11
KDE Plasma Version: 
KDE Frameworks Version: Versión 5.103.0
Qt Version: Versión 5.15.8 (compilado con 5.15.8)

ADDITIONAL INFORMATION
Looking for a more specific error description I used icalendar.org validator (https://icalendar.org/validator.html). The parser throws the following errors:
Missing DTSTAMP property near line # 4 Reference: RFC 5545 3.6.2. To-Do Component
Missing DTSTAMP property near line # 23 Reference: RFC 5545 3.6.2. To-Do Component
Missing DTSTAMP property near line # 42 Reference: RFC 5545 3.6.2. To-Do Component
Missing DTSTAMP property near line # 61 Reference: RFC 5545 3.6.2. To-Do Component  

ics file sample:

BEGIN:VCALENDAR
PRODID:icalendarexport
VERSION:2.0
BEGIN:VTODO
DESCRIPTION:Transferir de GGG GG GGG a VVVV VVV VVV VVV\, beneficiario 
 Visa\, importe $5\,408\,233.00
SUMMARY:Pago mensual VVVV VVV VVV VVV
UID:SCH000001
DTSTART;VALUE=DATE:20220905
DUE;VALUE=DATE:20230305
CREATED:20230224T184550
LAST-MODIFIED:20230224T195946
RRULE:FREQ=MONTHLY;WKST=SU
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Transferir de GGG GG GGG a VVVV VVV VVV VVV\, beneficiario 
 Visa\, importe $5\,408\,233.00
TRIGGER:-P1D
DURATION:P1D
REPEAT:1
END:VALARM
END:VTODO
BEGIN:VTODO
DESCRIPTION:Transferir de GGG GG GGG a MMMMM MMM MMM MMM\, beneficiario 
 MasterCard\, importe $4\,047.67
SUMMARY:Pago mensual MMMMM MMM MMM
UID:SCH000002
DTSTART;VALUE=DATE:20220708
DUE;VALUE=DATE:20230308
CREATED:20230224T184550
LAST-MODIFIED:20230224T195946
RRULE:FREQ=MONTHLY;WKST=SU
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Transferir de GGG GG GGG a MMMMM MMM MMM MMM\, beneficiario 
 MasterCard\, importe $4\,047.67
TRIGGER:-P1D
DURATION:P1D
REPEAT:1
END:VALARM
END:VTODO</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2275736</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2023-12-21 21:20:42 +0000</bug_when>
    <thetext>I confirm the same results.  I&apos;ll have to check the code to see if KMyMoney itself is creating this ics file, or if it is using an underlying KDE or Qt function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2276168</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2023-12-23 11:42:32 +0000</bug_when>
    <thetext>Git commit 1f3e9aa4509b8ff77b703f53a8bf455a28f8600b by Thomas Baumgart.
Committed on 23/12/2023 at 12:41.
Pushed by tbaumgart into branch &apos;master&apos;.

Create DTSTAMP property for calendar export
FIXED-IN: 5.2

M  +10   -0    kmymoney/plugins/icalendar/export/schedulestoicalendar.cpp

https://invent.kde.org/office/kmymoney/-/commit/1f3e9aa4509b8ff77b703f53a8bf455a28f8600b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>