[libplasma] [Bug 442100] Plasma's Calendar's PIM Event Plugin does not list any events on the current day the first time the Calendar widget is clicked/displayed

Fernando <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=442100

Fernando <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Fernando <[email protected]> ---
I can still reproduce this issue with Plasma 6.7.4 on Wayland in the
America/Sao_Paulo time zone.

I investigated it and found that DaysModel::agendaUpdated passes a QDate, which
is exposed to QML as midnight UTC. CalendarView compares it with the locally
constructed current date using local date components. In UTC-3, August 7 at
00:00 UTC becomes August 6 at 21:00 local time, so the agenda update is
incorrectly rejected as belonging to another day.

I submitted a merge request that compares the UTC components of the QDate with
the local components of the selected date:
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6903

I built and tested the patched Digital Clock applet locally with the PIM Events
plugin. Today's events now appear correctly on the first opening.

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.