Commit 3777dffb authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix mangling of dates for datepicker when converting from C++ to QML

parent f957cabb
Pipeline #109270 passed with stage
in 6 minutes and 49 seconds
......@@ -161,7 +161,8 @@ QVariant MonthModel::data(const QModelIndex &index, int role) const
}
const QDate date(year, month, day);
if (role == Date) {
return date;
return date.startOfDay();
// Ensure the date doesn't get mangled into a different date by QML date conversion
}
if (role == IsSelected) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment