Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122973

QDateTime::operator== documentation is wrong

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Eddy Edward Welbourne
            madwinter Marcus Tillmanns
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change