Commit d63bb7fa authored by Volker Krause's avatar Volker Krause

Show dates in the todo view in the local time zone

That's what all our other views do.
parent be7c724b
......@@ -280,10 +280,10 @@ QVariant TodoModel::data(const QModelIndex &index, int role) const
case PercentColumn:
return QVariant(todo->percentComplete());
case StartDateColumn:
return todo->hasStartDate() ? QVariant(KCalUtils::IncidenceFormatter::dateToString(todo->dtStart()))
return todo->hasStartDate() ? QLocale().toString(todo->dtStart().toLocalZone().date(), QLocale::ShortFormat)
: QVariant(QString());
case DueDateColumn:
return todo->hasDueDate() ? QVariant(KCalUtils::IncidenceFormatter::dateToString(todo->dtDue()))
return todo->hasDueDate() ? QLocale().toString(todo->dtDue().toLocalZone().date(), QLocale::ShortFormat)
: QVariant(QString());
case CategoriesColumn: {
QString categories = todo->categories().join(
......
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