Skip to content
Verified Commit 916130a1 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

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.

CCBUG: 448703
FIXED-IN: 5.24.1
(cherry picked from commit def2b7f4)
parent 008308bc
Pipeline #580356 passed with stage
in 2 minutes and 20 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment