https://bugs.kde.org/show_bug.cgi?id=448703

--- Comment #5 from Daniel Vrátil <dvra...@kde.org> ---
Git commit def2b7f4cc507bcf8f64540e77dd736ebb751e7d by Daniel Vrátil.
Committed on 23/08/2023 at 16:55.
Pushed by dvratil into branch 'release/23.08'.

Agenda: fix timezone being lost when moving event by drag

The code was using QDateTime::toTimeSpec() in attempt to restore the
timezone from the original dtStart/dtEnd. However, QDateTime::toTimeSpec()
automatically converts Qt::TimeZone timespec to Qt::LocalTime, so the
information about timezone was lost and the time was treated as local.

The solution is to restore the timezone manually when the original
timespec was Qt::TimeZone.
FIXED-IN: 5.24.1

M  +22   -4    src/agenda/agendaview.cpp

https://invent.kde.org/pim/eventviews/-/commit/def2b7f4cc507bcf8f64540e77dd736ebb751e7d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to