Bug 417982 - To-do events that are set to all day show up in the previous day
Summary: To-do events that are set to all day show up in the previous day
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: incidence editors (show other bugs)
Version: 5.13.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-21 10:22 UTC by Michael D
Modified: 2020-06-18 16:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D 2020-02-21 10:22:49 UTC
When I create a to-do for all day with no start date but due date set to, say, January 2, 2020, the event shows up due on January 1, 2020. I have to edit the event and change the date again to set the correct date. It works after that.
Comment 1 Bug Janitor Service 2020-06-17 19:02:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/eventviews/-/merge_requests/1
Comment 2 Bug Janitor Service 2020-06-18 16:15:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/eventviews/-/merge_requests/2
Comment 3 gjditchfield 2020-06-18 16:15:53 UTC
Git commit 06b1cede77c8c62c24281935bf404b62f06d1c94 by Glen Ditchfield.
Committed on 18/06/2020 at 16:06.
Pushed by gditchfield into branch 'release/20.04'.

Display all-day to-dos on their due date in the agenda view

The agenda view displays non-recurring all-day to-dos that are not overdue
on the day before their due date.  Recurring to-dos and non-all-day to-dos
are displayed correctly, on their due dates.

`displayIncidence()` deliberately displays to-dos due at midnight in the
event view at the end of the previous day, but that should not be done for
all-day to-dos.  This patch adds an all-day check.

The patch opportunistically removes two `setTime()` calls that duplicate
work done in initializers, and tidies a third.
Related: bug 338302

M  +4    -6    src/agenda/agendaview.cpp

https://invent.kde.org/pim/eventviews/commit/06b1cede77c8c62c24281935bf404b62f06d1c94