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

Ensure todo due date display is in local time



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 3bb896a6
Pipeline #236793 passed with stage
in 2 minutes and 51 seconds
......@@ -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(" ");
......
Supports Markdown
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