doubleSlashde / KeepTime

Application to track your time spent on different projects each day.
GNU General Public License v3.0
8 stars 3 forks source link

Wrong time calculation when startTime after endTime (manual edit) #79

Open Death111 opened 3 years ago

Death111 commented 3 years ago

image

The item with 33 minutes has properties: startTime=2021-03-02T16:34:33.525, endTime=2021-03-02T16:00:37

JSchraff commented 3 years ago

with #82 it is no longer possible to create Dates with negative duration. #80 will not be merged for now. It is still necessary to unify the use of DateFormatter and Duration. It should not be obfuscating the existence of negative durations, because this could lead to missunderstandings and hampers the ability to spot Problems. Therefore it should be formatted to show the negative Time everywhere correctly if somehow a negative Time gets created, or in future it is necessary to support negative work times.

Death111 commented 1 year ago

I also noticed that "absolute time" is calculated wrongly when there are overlapping times.

It can also be discussed on what is expected behavior here. As if both items would be "work" we would have absolute time 1h and work time displayed as 2 h - which is also confusing