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

QDateTime will fail with the date of 01.01.1970

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.4
    • Core: Date/Time
    • None

    Description

      qDebug()<<QDateTime::fromTime_t(QDateTime(QDate::fromString("01.01.1970","dd.MM.yyyy")).toTime_t());
      will return QDateTime("So. Feb 7 07:28:15 2106")
      but the correct will be 01.01.1970 00:00:00.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            tuxmaster Frank Büttner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes