Bug 470034

Summary: A small issue in showing Persian Calendar days
Product: [Plasma] plasmashell Reporter: Mohammad K. <mokazemi>
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: qydwhotmail
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.27.6
Sentry Crash Report:
Attachments: The hover text is correct, but the day number in calendar isn't.

Description Mohammad K. 2023-05-20 11:06:28 UTC
Created attachment 159130 [details]
The hover text is correct, but the day number in calendar isn't.

SUMMARY

Thankfully there was a problem in Persian calendar months names that is solved now (it was this: https://bugs.kde.org/show_bug.cgi?id=463196)

Today I noticed a small issue in the day numbers. after 28th, it shows 0 on the calendar. But the hover text shows the day correct. I'll attach screenshot make the problem clear. 

Operating System: EndeavourOS 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor: Mesa IntelĀ® UHD Graphics 620
Comment 1 Mohammad K. 2023-05-20 11:08:50 UTC
The problem seems to be only for Ordibehesht and Shahrivar months.
Comment 2 Fushan Wen 2023-05-21 17:52:46 UTC
Should be already fixed in Plasma 6 but I wonder if the fix can be backported to 5.27
Comment 3 Fushan Wen 2023-05-21 18:10:30 UTC
Git commit a9bc7061eec365d35650cf9fb83d71d1fa2c4d29 by Fushan Wen.
Committed on 21/05/2023 at 18:06.
Pushed by fusionfuture into branch 'Plasma/5.27'.

alternatecalendar: set dayLabel for Qt calendar providers

QDate can't accomodate all dates from alternate calendars, but the new
API that uses `QCalendar::YearMonthDay` only exists in KF6, so manually
set dayLabel for Qt calnedar providers.
FIXED-IN: 5.27.6

M  +3    -1    plasmacalendarplugins/alternatecalendar/provider/qtcalendar.cpp

https://invent.kde.org/plasma/kdeplasma-addons/commit/a9bc7061eec365d35650cf9fb83d71d1fa2c4d29