Skip to content

Fix dates

Dirk HOFFMANN requested to merge github/fork/ederag/fix_dates into master

Created by: ederag

This hopefully fixes date-related issues

In particular #419 (closed) is solved by using a clear rule rather than heuristics: for activities overlapping the hamster day-start time, use the selected hamster-day for start_time (since it is an early morning start, this corresponds to the next civil date), and the next date for end_time. A warning informs the user that something unusual is happening, and gives full information to check:

image The displayed duration is correct (not "negative" any longer).

If the fact is to be created in the past, the selected date has to be decremented. It is much safer to create the next civil day by default, since chances for conflicts is reduced.

Note that now the overlapping fact is displayed for the selected hamster-days (26th here), because part of its activity belongs to the 26th. Its indicated date is the start-time hamster-day.

Bonus: on-going facts from the month before displayed dates are now shown without the need for a second search.

Merge request reports

Loading