setMonth() and other setXXX() javascript function doesn't work on the date QML object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
From http://
Some of them indeed works, like getMonth(), getDate(), returning expected value.
However, when change a date property on a object with setMonth() and other functions, they don't do anything (and worse, fails silently):
Item {
id: foo
property date currentDate
}
foo.currentDate having no databinding.
On a click event handler:
console.log("Before setMonth " + foo.currentDate);
currentDate.
console.log("After setMonth " + foo.currentDate);
returns:
Before setMonth Sat Mar 7 08:13:50 2015 GMT+0100
After setMonth Sat Mar 7 08:13:50 2015 GMT+0100
The date has been unchanged