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

QFileInfo::lastModified is off by 1 hour [regression?]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.2
    • Core: I/O
    • None
    • Windows

      The same symptom as QTBUG-48306 seems to be back with QT 5.15.2, on the windows version (linux is fine), AND ONLY IN DEBUG BUILDS.

      For files modified today for example, (17 Nov 22 at winter DST setting in France), lastModified() returns 1 hour less than the date displayed in the file explorer.

      QDateTime::currentDataTime() properly returns a value with the correct time since epoch (equal to user local hour), but lastModified returns a value that is 3.600.000 milliseconds less for the same user hour

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

            thiago Thiago Macieira
            bartoli Olivier BARTHELEMY
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes