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

JavaScript getDay() regression on MinGW

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Story Points:
      8
    • Sprint:
      Qt6_Foundation_ Sprint 8, Qt6_Foundation_ Sprint 9, Qt6_Foundation_Sprint 38, Qt6_Foundation_Sprint 39, Qt6_Foundation_Sprint 40, Foundation_Sprint 41 (Team 1), Team 1 Foundation_Sprint 42, Team 1 Foundation_Sprint 43, Team 1 Foundation_Sprint 44, Team 1 Foundation_Sprint 45, Team 1 Foundation_Sprint 46, Team 1 Foundation_Sprint 47, Team 1 Foundation_Sprint 48, Team One Foundation Sprint 49, Team One Foundation Sprint 50, Team One Foundation Sprint 51

      Description

      The following code should print 4 since October 3, 2019 is a Thursday, however, in Qt 5.13.1 MinGW it prints 3. Visual Studio and Linux are ok

      import QtQuick 2.0
      
      Item{
          Component.onCompleted: print(new Date(2019, 9, 3).getDay())
      }
      

       

      C:\Code\Blogs>qmake -v
      QMake version 3.0
      Using Qt version 5.5.1 in C:/Qt/Qt5.5.1/5.5/mingw492_32/lib

      C:\Code\Blogs>qmlscene Chris.qml
      qml: 4

      ________________________________________________________________________

      C:\Code\Blogs>qmake -v
      QMake version 3.1
      Using Qt version 5.13.1 in C:/Qt/Qt5.13.1/5.13.1/msvc2017_64/lib

      C:\Code\Blogs>qmlscene Chris.qml
      qml: 4

      ________________________________________________________________________

      C:\Code\Blogs>qmake -v
      QMake version 3.1
      Using Qt version 5.13.1 in C:/Qt/Qt5.13.1/5.13.1/mingw73_64/lib

      C:\Code\Blogs>qmlscene Chris.qml
      qml: 3

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              Eddy Edward Welbourne
              Reporter:
              chriscortopassi Chris Cortopassi
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes