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

Wrong return of the standardTimeOffset function under Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.0 Beta3
    • 5.14.1
    • Core: Date/Time
    • None
    • Android
    • c53cccc171c2da803cfd247e95c5dd48e5610c3b b34158d7a1e89e5e7b32d3425c3df52aacedbb31 (qt/qtbase/5.15)

    Description

      Hello, under Android, the standardTimeOffset function of the QTimeZone class always returns zero.
      For example, the following simple code returns 3600 on Windows, Ubuntu and macOS but returns 0 on Android.

       

      QTimeZone tzEph("Europe/Paris");
      QDate dateEph;
      QTime timeEph;
      dateEph.setDate(Annee, Mois, Jour);
      timeEph.setHMS(Heu, Min, Sec);
      QDateTime dtEph = QDateTime(dateEph, timeEph, tzEph);
      qDebug() << tzEph.standardTimeOffset(dtEph);
      

       

      Franck

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-81975
          # Subject Branch Project Status CR V

          Activity

            People

              Eddy Edward Welbourne
              francky033 Franck RICHARD
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes