Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
fa33d939
Commit
fa33d939
authored
Dec 08, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/extratodomodel.cpp
View file @
fa33d939
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment