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

Date.setDate does nothing

    XMLWordPrintable

Details

    • 13
    • 51089b338 (dev), ebd3a7603 (6.5)

    Description

      Item {
          property date aDate: new Date()
      
          Component.onCompleted: {
              console.log(aDate)
              aDate.setDate(14); // Does nothing.
              console.log(aDate)
              console.log((aDate instanceof Date)) // True.
          }
      }
      

      Declaring aDate as a var works.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-28981
          # Subject Branch Project Status CR V

          Activity

            People

              ulherman Ulf Hermann
              mitch_curtis Mitch Curtis
              Vladimir Minenko Vladimir Minenko
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes