Skip to content
Verified Commit def2b7f4 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
parent 0daacec9
Pipeline #466197 passed with stage
in 1 minute and 50 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