Bug 480767

Summary: Incorrect calculation of multi-day recurrent events
Product: [Frameworks and Libraries] Akonadi Reporter: marcin.marcin.m
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: 5.24.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example event from Merkuro

Description marcin.marcin.m 2024-02-03 10:06:56 UTC
Created attachment 165491 [details]
Example event from Merkuro

SUMMARY
When a recurrence rule for an event is defined, such that the event should recur on multiple weekdays, the recurrence is incorrectly calculated. The event is calculated to occur only once a week instead of several times a week.

The issue occurs with both Merkuro and KOrganizer, and is therefore likely an issue with akonadi. 

STEPS TO REPRODUCE
1. Create an event that recurs on multiple weekdays, e.g. Tue, Wed and Thu (cf. screenshot), whose first occurrence happens on Wed, that happens for 7 times.
 

OBSERVED RESULT
The event occurs for 7 weeks, every Wed.

EXPECTED RESULT
The event should occur for 3 weeks: 
week 1: Wed, Thu, 
week 2: Tue, Wed, Thu, 
week 3: Tue, Wed 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
On Android (synchronized with CalDAV) the same event is calculated correctly.