Bug 470034 - A small issue in showing Persian Calendar days
Summary: A small issue in showing Persian Calendar days
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 5.27.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-20 11:06 UTC by Mohammad K.
Modified: 2023-05-21 18:10 UTC (History)
1 user (show)

See Also:
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. (18.71 KB, image/png)
2023-05-20 11:06 UTC, Mohammad K.
Details

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