horilla
horilla copied to clipboard
[BUG] Working time Counter adds break times at same day to count
Bug Report
Description
The duration that a user has clocked in is calculated incorrectly if the user clocks in and out several times. Example: The user clocks in at 8 am and clocks out again at 11:30 am. Until then, the user is correctly shown a working time of 3.5 hours. However, if the user clocks in again after a break of 1 hour, a working time of 4.5 hours is displayed and continues to be counted. However, the timer should continue at 3.5 hours.
Steps to Reproduce
- Start a time tracking first a day
- work some time
- stop for a break
- after a couple of time restart
- Counter adds the break time to the work time
Expected Behavior
The counter respects the break time and continues calculating by respecting breaks.
Actual Behavior
The counter adds break times to total calculated work time.