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

WASM: (new Date()).getHours() gives wrong hour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.2
    • Core: Date/Time
    • None
    • Qt 5.15.2 emscripten 1.39.8
      Windows 10 (20H2)
      Firefox: 87.0 (64-Bit)
      Chrome: Version 89.0.4389.90 (Offizieller Build) (64-Bit)
    • WebAssembly

    Description

      I have been using in a QML App javascript to get the hour:

      (new Date()).getHours()
      

      After Updating to Qt 5.15.2(previous Version was 5.14.0 Beta2) the returned hour is wrong by -1.

      I screenshots of the attached examples:
      Browser:

      Windows:

      Simple HTML Javascript:

      The timezone in Windows is set to UTC+01:00 with automatic daylight savings.

      Attachments

        Issue Links

          Activity

            People

              Eddy Edward Welbourne
              Marscho Marscho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: