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

change in 5.2: QDateTime().toLocalTime().isValid() is true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.2.0 Beta1
    • 5.2.0 Alpha
    • Core: Date/Time
    • None

      In 5.1, calling toLocalTime on an invalid QDateTime returns an invalid QDateTime. In 5.2 it returns a 'valid' QDateTime.

      Probably QDateTime::toTimeSpec needs to add a check for whether the current QDateTime is valid or not.

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

            johnlayt John Layt
            ian.monroe Ian Monroe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes