Bug 506413 - Calendar's current date doesn't update at midnight while digital-clock popup is opened
Summary: Calendar's current date doesn't update at midnight while digital-clock popup ...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: 6.4.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2025-06-30 22:27 UTC by bastimeyer123
Modified: 2025-08-13 17:59 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 bastimeyer123 2025-06-30 22:27:34 UTC
SUMMARY
Very minor issue... The calendar-view's current date (UI header title) doesn't update during midnight when the digital-clock's window is opened. After reopening it, the date is correctly updated, as expected. This implies that the header text has no timer attached to update it while the UI is shown. A clock widget with an integrated calendar should always update correctly.

STEPS TO REPRODUCE
1. Open digial-clock window
2. Wait for clock to pass midnight
3. Calendar's current date doesn't get updated

I believe this is the responsible QML part, but I'm neither a C++ nor Qt dev, and don't know QML either, so I can't submit a MR myself.
https://invent.kde.org/plasma/plasma-workspace/-/blob/0ce9b2204da994078a739fc8e6bfffd2a9c828fa/applets/digital-clock/package/contents/ui/CalendarView.qml#L109-118

A fix should be trivial. When opening the window/view, attach a timer that triggers on the next day and that will update the header text. Cancel the timer when closing/hiding the window/view.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1