https://bugs.kde.org/show_bug.cgi?id=521114
Fushan Wen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi |t/e1e46fa91c91cbc56ced2d339 |t/1967ff8c8ccca57744ee2bb1b |947e13e0cff5174 |629f8d46fbf3869 --- Comment #6 from Fushan Wen <[email protected]> --- Git commit 1967ff8c8ccca57744ee2bb1b629f8d46fbf3869 by Fushan Wen. Committed on 12/06/2026 at 11:09. Pushed by fusionfuture into branch 'Plasma/6.6'. components/calendar: fix today-highlight showing wrong day for UTC+x timezones before UTC midnight Calendar::setToday() calls .date() on a QDateTime with Qt::UTC timeSpec, which returns the UTC date. This gives the wrong date when the system timezone is ahead of UTC and local time is before UTC midnight, because the local date has already advanced past the UTC date (e.g. UTC+6 at 04:00 local is still 22:00 UTC the previous day). The incoming QDateTime originates from Clock::jsDateTime() which retains Qt::UTC timeSpec. Replace dateTime.date() with dateTime.toLocalTime().date() so the stored date matches the system local timezone, consistent with what JS Date.getDate() returns for the same value. Apply the same fix to setDisplayedDate(const QDateTime &) so it also handles QDateTime values with Qt::UTC timeSpec correctly. (cherry picked from commit 15e4ca1137599e093b71a9c57bb3e742cac3e707) Co-authored-by: Fushan Wen <[email protected]> M +13 -2 components/calendar/calendar.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/1967ff8c8ccca57744ee2bb1b629f8d46fbf3869 -- You are receiving this mail because: You are watching all bug changes.
