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

WASM: Diverging timezones in C++/QML

XMLWordPrintable

    • WebAssembly
    • 373897481fb930055e6e89035b1055f8dd80b83f (qt/qtdeclarative/dev) 11a93d1ab6b2db3b16f8e556ce6ab9605f562e3f (qt/qtdeclarative/6.2) a18926c736bf9de6bd652c8bb1799d4678001341 (qt/tqtc-qtdeclarative/5.15)

      Running `new Date().getTimezoneOffset()` does not return the same value as `-QDateTime::currentDateTime().offsetFromUtc() / 60` or `new Date().getTimezoneOffset()` in the browser.

      I'd expect QML to have the same time zone as in C++/Browser, as it is on other platforms like iOS, Android, Linux and MacOS.

      Example attached.

        1. Bildschirmfoto vom 2021-07-22 07-21-16.png
          19 kB
          Cajus Pollmeier
        2. timinator.tar.gz
          2 kB
          Cajus Pollmeier
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes