Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.2
-
None
-
cb5aac06c (dev), b93e7619a (6.7), 937125f10 (6.6)
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
Attachments
For Gerrit Dashboard: QTBUG-122973 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
546524,4 | Correct documentation of QDateTime's comparisons | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |