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

Wrong return of the standardTimeOffset function under Android

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes