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

correct QDateTime on March 28, 1976 reported as invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • Core: Date/Time
    • None
    • macOS Catalina, macOS BigSur, Windows 10
      timezone is CEST (France/Paris)
    • macOS, Windows

    Description

      on macOS, this correct date is reported as QDateTime(Invalid)

      qDebug() << QDateTime(QDate(1976, 3, 28), QTime(1, 0, 0), QTimeZone("Europe/Paris"));

      on Windows, this one is also reported as QDateTime(Invalid)

      qDebug() << QDateTime(QDate(1976, 3, 28), QTime(2, 0, 0), QTimeZone("Europe/Paris"));

      it seems that the problem only occurs with this particular date, 1976-03-28

      it's an important issue because
      QDatetime(anydatebefore1976_03_28).msecsTo(anydateafter1976_03_28)
      is wrong

      thanks for your wonderful work !

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              filmars Philippe Castell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes