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

tst_qdatetime fails because of wrong locale on Win 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.6
    • Fix Version/s: None
    • Component/s: Core: Date/Time
    • Labels:
    • Environment:
      New Win 10 VM templates

      Description

      ********* Start testing of tst_QDateTime *********
      Config: Using QtTest library 5.6.0, Qt 5.6.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2015)
      QDEBUG : tst_QDateTime::initTestCase() Current local time detected to be ahead of UTC but isn't the Central European timezone
      PASS   : tst_QDateTime::initTestCase()
      FAIL!  : tst_QDateTime::toString_textDate(localtime) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013"
         Expected (expected): "Wed Jan 2 01:02:03 2013"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(utc) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(offset+) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT+1000"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT+1000"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(offset-) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT-1000"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT-1000"
      tst_qdatetime.cpp(776) : failure location
      PASS   : tst_QDateTime::toString_textDate(invalid)
      PASS   : tst_QDateTime::cleanupTestCase()
      Totals: 3 passed, 4 failed, 0 skipped, 0 blacklisted
      ********* Finished testing of tst_QDateTime *********
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              hehalmet Heikki Halmet
              Reporter:
              frederik Frederik Gladhorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes