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

QDateTime will fail with the date of 01.01.1970

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes