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

Bugfix/#79 negative time calculation #80

Closed Death111 closed 1 year ago

Death111 commented 3 years ago

Fixes issue where time was calculated wrong in report for the whole project, when work items exist which have startTime after endTime. Issue was in Controller.calcSeconds but I also adapted logic at the other places

Death111 commented 3 years ago

Maybe it would be more obvious for the user when the negative time is shown in the work items. If this is done have a look at the report timeline, as this will most likely not work with negative times.

Instead of hiding the wrong start end time selection by just using the abs() method (like it was fixed now).