Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Is getTimezoneOffset() javascript's date function broken...?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 477 Views 1 Watching
  • 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.
  • O Offline
    O Offline
    oria66
    wrote on 9 Feb 2021, 13:37 last edited by oria66
    #1

    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
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 23 Feb 2021, 04:35 last edited by
      #2

      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
      2
      • L Offline
        L Offline
        lorn.potter
        wrote on 1 Mar 2021, 05:51 last edited by
        #3

        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
        5

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved