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
Attachments
For Gerrit Dashboard: QTBUG-122973 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
545426,4 | Correct documentation of QDateTime's comparisons | dev | qt/qtbase | Status: MERGED | +2 | 0 |
546493,2 | Correct documentation of QDateTime's comparisons | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
546506,2 | Correct documentation of QDateTime's comparisons | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
546524,5 | Correct documentation of QDateTime's comparisons | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
562597,3 | Correct documentation of QDateTime's comparisons | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
587631,3 | Correct documentation of QDateTime's comparisons | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |