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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes