[Scheduled panel] Incorrect attribution of tasks to sections
Description
Created attachment 342695 a screenshot of gnome-todo showing the bug
I'm not 100% sure this bug is happening since 2017-01-01, but I can't remember I've seen it before.
Steps to reproduce:
- have an old task created before 2017-01-01
- live in 2017
- create a new task with a due date of 1 day before the old task's due date
- have a look at the "Scheduled" panel
What happens: both tasks end up in the same section as if the task was due on the same day.
What should happen: Both tasks are due on two different days, gnome-todo should show this.
Installed software versions: gtk3-3.22.5-1.fc25.x86_64 glib2-2.50.2-1.fc25.x86_64 gnome-todo-3.22.1-1.fc25.x86_64 evolution-data-server-3.22.3-1.fc25.x86_64
Additional info: I guess this is a bug related to the leap second introduced on 2016-12-31 or between 2016-12-31 and 2017-01-01. More details: https://hpiers.obspm.fr/iers/bul/bulc/bulletinc.52 https://en.wikipedia.org/wiki/Leap_second
This bug could be caused by glib2 or evolution-data-server, I don't have knowledge of gnome-todo internals to say.
Additional info on the screenshot attached: The attachment shows a test task created at 2017-01-01 and a few older tasks, in the "Scheduled" panel. Note that the older tasks are listed below "Today" although they are due tomorrow. When removing the test task, the older tasks are listed below "Tomorrow" correctly. In evolution, the due dates are given in seconds and are shown as follows: test task: 2017-01-01 19:33:11 Job-Vorplanung: 2017-01-02 (no time given) Friseur: 2017-01-02 15:22:00 and there are a few other tasks due at 2017-01-02, but after 15:22:00.
Submitted by: Christian Stadelmann <<gno..@...de>>
Assigned to: gnome-todo-maint@gnome.bugs
Original ticket: #776687