Summary: | Calendar widget highlights yesterday instead of today | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Eugene Shalygin <eugene.shalygin+bugzilla.kde> |
Component: | Calendar widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asturm, bugseforuns, casta+kde, lubos, rauchwolke |
Priority: | NOR | ||
Version First Reported In: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Eugene Shalygin
2020-05-13 01:42:30 UTC
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. |