Bug 469935 - secondary calendar date for tooltip & date format string
Summary: secondary calendar date for tooltip & date format string
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 5.27.5
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 469933 469934 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-18 09:20 UTC by mh-firouzjah
Modified: 2025-11-16 15:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mh-firouzjah 2023-05-18 09:20:50 UTC
if we enable a secondary calendar a tooltip that shows the date in that calendar will be available inside the calendar, I mean when we hover over a date inside the calendar. also there is a log format of current date in secondary calendar format, in the agenda subtitle(as shown in in the screenshot bellow).
but there should be a posseblity for tooltip to show date in secondary calendar when we hover over the clock plus it would be very useful if we could have a chance to enter a custom date format in order to have date in secondary calendar beside/bellow the click.(currently it only accepts qt.date format string and date is in Gregorian)  
also it would be easier to add a second text box to specify the locale format and then using JS `Date().toLocaleDateString()` which will enable user to have more control on what he want to see, e.g: `new Date().toLocaleDateString('fa-IR',{year:'numeric',month:'2-digit',day:'2-digit',formatMatcher:'basic'})`

![Screenshot_20230517_112017](https://invent.kde.org/plasma/plasma-workspace/uploads/df633fbb59092ab70be20c08eeba9909/Screenshot_20230517_112017.png)
![Screenshot_20230517_111101](https://invent.kde.org/plasma/plasma-workspace/uploads/dddc449f4abccf39e7ac5a019fc52fa5/Screenshot_20230517_111101.png)
Comment 1 Tobias Fella 2023-05-18 18:37:48 UTC
*** Bug 469934 has been marked as a duplicate of this bug. ***
Comment 2 Tobias Fella 2023-05-18 18:37:56 UTC
*** Bug 469933 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2023-05-19 15:59:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2938
Comment 4 Fushan Wen 2023-05-20 01:32:23 UTC
Git commit 6b56933ea51ef0cb6929ae95758d1ec58350e1e2 by Fushan Wen.
Committed on 20/05/2023 at 01:32.
Pushed by fusionfuture into branch 'Plasma/5.27'.

applets/digital-clock: show today's sublabel in tooltip if there is one

I forgot to add sublabel to the tooltip in the original commit, which is
useful for the alternate calendar plugin and the holiday plugin.

Amends e421073f5ed91d14c83fc51b2a072d4a7bd81cbb

M  +10   -1    applets/digital-clock/package/contents/ui/Tooltip.qml

https://invent.kde.org/plasma/plasma-workspace/commit/6b56933ea51ef0cb6929ae95758d1ec58350e1e2
Comment 5 Bug Janitor Service 2023-05-20 01:47:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2940
Comment 6 Fushan Wen 2023-05-20 03:31:43 UTC
Git commit bafb4157125bcff0f9ca1ab5f3d5d1ed40a68cda by Fushan Wen.
Committed on 20/05/2023 at 03:30.
Pushed by fusionfuture into branch 'Plasma/5.27'.

components/calendar: reset label under Gregorian date when plugin list changes

This allows to reset the label if the alternate calendar plugin is
disabled.

M  +7    -0    components/calendar/qml/MonthView.qml

https://invent.kde.org/plasma/plasma-workspace/commit/bafb4157125bcff0f9ca1ab5f3d5d1ed40a68cda
Comment 7 Fushan Wen 2023-05-20 03:33:31 UTC
Git commit d0d60cc679280df694c3e4c4fdd7949b72e019ab by Fushan Wen.
Committed on 20/05/2023 at 03:33.
Pushed by fusionfuture into branch 'master'.

components/calendar: reset label under Gregorian date when plugin list changes

This allows to reset the label if the alternate calendar plugin is
disabled.


(cherry picked from commit bafb4157125bcff0f9ca1ab5f3d5d1ed40a68cda)

M  +7    -0    components/calendar/qml/MonthView.qml

https://invent.kde.org/plasma/plasma-workspace/commit/d0d60cc679280df694c3e4c4fdd7949b72e019ab
Comment 8 Fushan Wen 2023-06-09 13:57:42 UTC
Git commit 4ace08be26f94b9b3d0aec293d84612b266ac661 by Fushan Wen.
Committed on 09/06/2023 at 13:57.
Pushed by fusionfuture into branch 'master'.

applets/digital-clock: show today's sublabel in tooltip if there is one

I forgot to add sublabel to the tooltip in the original commit, which is
useful for the alternate calendar plugin and the holiday plugin.

Amends e421073f5ed91d14c83fc51b2a072d4a7bd81cbb
(cherry picked from commit 6b56933ea51ef0cb6929ae95758d1ec58350e1e2)

M  +10   -1    applets/digital-clock/package/contents/ui/Tooltip.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/4ace08be26f94b9b3d0aec293d84612b266ac661
Comment 9 Nate Graham 2023-09-19 22:30:22 UTC
Is there anything left do do here, Fushan?
Comment 10 mh-firouzjah 2025-11-16 15:22:23 UTC
In the latest version from: Fedora 43
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland

I don't have any tooltip, sublabel or other options to see the date in secondary calendar except there is a very small size text for that as shown in the picture below which is not very helpful.
I'm requesting for an option to lets users replace the date shown in panel with the secondary calendar date. this could be possible by letting the format string to use locale or something like that.