SUMMARY The calendar shows the correct date, but highlights yesterday. STEPS TO REPRODUCE 1. Click on clock to show the calendar. 2. Click on "Today". OBSERVED RESULT Yesterday is highlighted. EXPECTED RESULT Today is highlighted. SOFTWARE/OS VERSIONS Operating System: Gentoo KDE Plasma Version: 5.18.80 KDE Frameworks Version: 5.71.0 Qt Version: 5.15.0 RC Kernel Version: 5.6.11-gentoo OS Type: 64-bit
The bug is connected with another one with the calendar system: it fails to read local timezone. The widget says my local timezone is UTC, but the data command knows it is CEST. Naturally, $ stat /etc/localtime File: /etc/localtime -> ../usr/share/zoneinfo/Europe/Berlin Once I set the time zone in systemsettings to a correct value, the calendar widget highlights the correct date. Thus, there are three problems: 1. KDE can't read timezone from /etc/localtime 2. The calendar widgets uses two inconsistent methods to obtain the current date, one for the text label and another one to highlight a cell in the widget. 3. The method used for the widget returns invalid dates if KDE doesn't know current time zone.
(In reply to Eugene Shalygin from comment #1) > ... but the data command The "date" command.
*** Bug 423112 has been marked as a duplicate of this bug. ***
See also: https://bugs.gentoo.org/737914 https://github.com/qt/qtbase/commit/333d7e6de434fbe7777f948761ac5e7b5065d83f#diff-c9a2868baf32badef92f0ff9bd79264fL1153
I can't reproduce this bug with the new calendar. Can you reproduce with newer versions of Plasma and frameworks Eugene?
On Gentoo with the patched qtcore everything seems to be working fine now.
Thanks for the feedback.