Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Is getTimezoneOffset() javascript's date function broken...?

    Qt for WebAssembly
    2
    3
    240
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oria66
      oria66 last edited by oria66

      Hi. Recently I upgrade a Qt WASM to Emscripten 1.39.8 from 1.38.27, but some strange behaviour is happening. When I call getTimezoneOffset() from a date object on QML side, the function returns 0 in Qt WASM compilation. However, when I run it in Desktop compilation works fine and returns 180 [minutes] (GMT -3 hrs).

      I am using Qt 5.15.2.

      The truth is out there

      1 Reply Last reply Reply Quote 0
      • lorn.potter
        lorn.potter last edited by

        Possibly, I will do some testing and let you know what I find.

        Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
        Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

        1 Reply Last reply Reply Quote 2
        • lorn.potter
          lorn.potter last edited by

          Yes, it is broken.
          I have made a Qt bug report and will fix when I have time.
          https://bugreports.qt.io/browse/QTBUG-91441

          Thanks!

          Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
          Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

          1 Reply Last reply Reply Quote 5
          • First post
            Last post