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

QMacTimeZonePrivate::abbreviation() uses GMT+offset as short-form for (at least) CET

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.6, 5.7, 5.8
    • Core: Date/Time
    • None
    • osx-10.8-x86_64Release_NoFramework, Clang.
    • ff4f0c327617e7d7593efdf986235296bf0b83d7

    Description

      QMacTimeZonePrivate::abbreviation() delegates to the native Darwin NSTimeZone API's method [0]. Unfortunately ([1], [2]), it seems the implementation is selective about which zones to correctly handle this for; it gets PST right, but fails for CET, using GMT+01:00 instead of the proper abbreviation.

      The relevant part of the log is:

       FAIL!  : tst_QDateTime::toString_textDate_extra() Compared values are not the same
          Actual   (dt.toString())                               : "Thu Jan 1 01:00:00 1970 GMT+01:00"
          Expected (QLatin1String("Thu Jan 1 01:00:00 1970 CET")): "Thu Jan 1 01:00:00 1970 CET"
          Loc: [tst_qdatetime.cpp(891)]
      

      Note that the earlier PST test (for America/Vancouver) passes, correctly using PST as abbreviation; apparently a business based in that time-zone cares enough to get that one right but not enough to correctly handle CET.

      This is probably beyond our power to fix, short of using a different back-end on Mac in place of the native one.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes