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
bf1c472b
Commit
bf1c472b
authored
Sep 25, 2022
by
Claudio Cambra
Browse files
Ensure todo due date display is in local time
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
3bb896a6
Pipeline
#236793
passed with stage
in 2 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/models/todosortfilterproxymodel.cpp
View file @
bf1c472b
...
...
@@ -194,7 +194,7 @@ QString TodoSortFilterProxyModel::todoDueDateDisplayString(const KCalendarCore::
const
auto
includeTime
=
!
todo
->
allDay
()
&&
format
!=
DisplayDateOnly
;
const
auto
includeOverdue
=
todo
->
isOverdue
()
&&
format
==
DisplayDateTimeAndIfOverdue
;
const
auto
todoDateTimeDue
=
todo
->
dtDue
();
const
auto
todoDateTimeDue
=
todo
->
dtDue
()
.
toLocalTime
()
;
const
auto
todoDateDue
=
todoDateTimeDue
.
date
();
const
auto
todoTimeDueString
=
includeTime
?
i18nc
(
"Please retain space"
,
" at %1"
,
systemLocale
.
toString
(
todoDateTimeDue
.
time
(),
QLocale
::
NarrowFormat
))
:
QStringLiteral
(
" "
);
...
...
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