Bug 506640

Summary: Event duration calculations are incorrect
Product: [Applications] Merkuro Reporter: Hans <hans.d.kokx>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the incorrect calculation

Description Hans 2025-07-05 15:18:20 UTC
Created attachment 182980 [details]
Screenshot of the incorrect calculation

SUMMARY
When entering an all-day event spanning multiple days, then hovering over the resulting calendar event, the duration calculation is incorrect.

STEPS TO REPRODUCE
1. Create a new all-day event, spanning multiple days
2. Save the event
3. Hover over the event

OBSERVED RESULT
The duration is "%n day and 21 hours"

EXPECTED RESULT
The duration should be something like "40 days"


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-22-generic (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: Intel® Graphics

ADDITIONAL INFORMATION