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

dateTime != dateTime.addMSecs(0) after time zone change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.0 FF
    • 5.14.2
    • Core: Date/Time
    • None
    • Windows
    • 21
    • 54c2383e8 (dev)
    • Foundation Sprint 88, Foundation Sprint 89, Foundation Sprint 90

    Description

      I expected that the following test would pass:

      QDateTime current = QDateTime::currentDateTime();
      QTest::qWait(10000); // change system time zone externally
      QCOMPARE(current, current.addMSecs(0));

      FAIL! : GeneralTests::date() Compared values are not the same
        Actual   (current)            : 2020/04/29 12:19:06.728[Jordanien Sommerzeit]
        Expected (current.addMSecs(0)): 2020/04/29 13:19:06.728[Jordanien Sommerzeit]

       

      Using Win10, Qt 5.14.2 msvc2017_64

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            fkaelberer Felix Kälberer
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes