Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.2
-
None
-
cb5aac06c (dev), b93e7619a (6.7), 937125f10 (6.6), d6d387121 (tqtc/lts-6.5), 627a568a4 (tqtc/lts-6.2), 2479dc7ad (tqtc/lts-5.15)
Description
The documentation of
bool QDateTime::operator==(const QDateTime &lhs, const QDateTime &rhs)
states that: "Two datetimes are different if either the date, the time, or the time zone
components are different"
This is not true, as the code (in QDateTime::equals) compares the timezone offset and takes it into account when comparing the dates.
See also: https://godbolt.org/z/fhv73Wqe7