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

QTimeZone::systemTimeZoneId always returns UTC on Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.14.1, 5.14.2, 5.15.0
    • Core: Date/Time
    • None
    • Windows 7 64 bit
    • Windows
    • dee140a79a3c87184abbe7d7edac4533b137ca16 (qt/qtbase/dev) 3afcb39977ce3c646e29339a4d5bcc1329670228 (qt/qtbase/5.15)

    Description

      The bug only occurs on Windows 7, on Windows 10 all works fine.

      The following call

      QByteArray id = QTimeZone::systemTimeZoneId();
      

      returns always UTC. And as a direct consequence the following call relying on the above function returns incorrect values

      QTimeZone::systemTimeZone().standardTimeOffset(QDateTime::currentDateTime())
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            moon99 moon99
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes