Commit fa33d939 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Tasks view now always shows date string according to system locale

parent a4c6ced6
Pipeline #106935 passed with stage
in 4 minutes and 57 seconds
......@@ -131,7 +131,7 @@ QVariant ExtraTodoModel::data(const QModelIndex &index, int role) const
case TopMostParentDueDate: {
bool isOverdue = (todo->hasDueDate() && todo->dtDue().date() < QDate::currentDate() && todo->allDay())
|| (todo->hasDueDate() && todo->dtDue() < QDateTime::currentDateTime() && !todo->allDay());
return isOverdue ? i18n("Overdue") : todo->hasDueDate() ? todo->dtDue().toString() : i18n("No set date");
return isOverdue ? i18n("Overdue") : todo->hasDueDate() ? QLocale::system().toString(todo->dtDue().date()) : i18n("No set date");
}
case TopMostParentPriority:
return todo->priority();
......
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