Commit 780a296a authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Tasks set to be all day and are on the current day no longer show 'overdue'

parent dda77f87
Pipeline #93336 canceled with stage
......@@ -211,7 +211,7 @@ function todoDateTimeLabel(datetime, allDay, completed) {
i18nc("%1 is the time, spaces included to allow use of 'empty' string when an event is allday and has no time", " at %1 ", datetime.toLocaleTimeString(Qt.locale(), 1));
if(DateUtils.sameDay(datetime, now)) {
return datetime > now && !completed ?
return (datetime > now || allDay) && !completed ?
i18nc("No space since the %1 string, which includes the time (or not), includes this space", "Today%1", timeString) :
i18nc("No space since the %1 string, which includes the time (or not), includes this space", "Today%1(overdue)", timeString);
} else if(DateUtils.sameDay(DateUtils.addDaysToDate(datetime, - 1), now)) { // Tomorrow
......
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