Skip to content
Commit 223c6339 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix check whether RRULE UNTIL datetime is UTC

In Qt6, the timeSpec has changed behavior, and just checking whether
a QDateTime::timeSpec() == Qt::UTC is not enough, since when the
QDateTime has a valid QTimeZone (that represents UTC), timeSpec() will
return Qt::TimeZone.

Thus the proper way is to check whether the QTimeZone returned by QDateTime
is the UTC timezone.

This fixes "UNTIL in RRULE must be specified in UTC" warning printed by
the testicaltimezones test.
parent f74313db
Pipeline #650244 passed with stage
in 4 minutes and 38 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