horilla icon indicating copy to clipboard operation
horilla copied to clipboard

[BUG] Working time Counter adds break times at same day to count

Open calien666 opened this issue 1 year ago • 6 comments

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

  1. Start a time tracking first a day
  2. work some time
  3. stop for a break
  4. after a couple of time restart
  5. 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.

Screenshot

Screen Shot 2024-01-03 at 12 40 29

calien666 avatar Jan 03 '24 11:01 calien666