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

QTimeZone IANA id broken on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.2
    • Fix Version/s: 6.0.1, 6.1.0 Alpha
    • Component/s: Core: Date/Time
    • Labels:
      None
    • Environment:
      Android
    • Platform/s:
      Android
    • Commits:
      6ee13db700eecd8dfed54a9ec2d1081b39511562 (qt/qtbase/dev) 8b1194edea390f5608526a7f15cc562a3f17656b (qt/qtbase/6.0) 083e9fbca268938eaba72af07309adf1d902613a (qt/tqtc-qtbase/tqtc/lts-5.15)

      Description

      QTimeZone behaves badly on Android. Windows works as expected:

      auto z = QTimeZone("America/Los_Angeles");
      qDebug() << z.id();    // Returns "Pacific Daylight Time"

      auto z2 = QTimeZone(z.id());
      qDebug() << z2.id();   // Returns "GMT"!!!

      z.id() should return a valid IANA code ("Pacific Daylight Time" is not correct).

      This worked on 5.12.6, so something broke since then.

      Did not see any other reports of this in the bug database. 

        Attachments

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

          Activity

            People

            Assignee:
            Eddy Edward Welbourne
            Reporter:
            justin.steventon Justin Steventon
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes