Bug 506640 - Event duration calculations are incorrect
Summary: Event duration calculations are incorrect
Status: REPORTED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-05 15:18 UTC by Hans
Modified: 2025-07-05 15:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of the incorrect calculation (19.65 KB, image/png)
2025-07-05 15:18 UTC, Hans
Details

Note You need to log in before you can comment on or make changes to this bug.
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