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

Date.setDate does nothing

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes