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
trafficstars

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

Hi @calien666 , We'll check and update it asap.

With Regards, Team Horilla

horilla-opensource avatar Jan 03 '24 11:01 horilla-opensource

@horilla-opensource

I also noticed a similar issue related to incorrect time counting. I started both the Horilla timer and my mobile timer simultaneously. After one hour, I observed some minute time difference in Horilla.

Could you please check and fix it? Every minute is crucial for the company and us at work, so accuracy is essential.

Hi @mahesh-makwana-web-vision , Sorry for the issue caused. Our team is working on it right now and will update it asap.

With Regards, Team Horilla

horilla-opensource avatar Jan 04 '24 10:01 horilla-opensource

Hi @calien666 @mahesh-makwana-web-vision , We have updated the method for the calculation for attendance timer function to solve the issue. Please check the latest code and let us know if you have any more concerns related to this. PS: Run the makemigration and migrate command

With Regards, Team Horilla

horilla-opensource avatar Jan 04 '24 14:01 horilla-opensource

Hi @calien666 @mahesh-makwana-web-vision , Were you able to test out the solution, if the solution is okay, we can please close the issue?

With Regards, Team Horilla

horilla-opensource avatar Mar 19 '24 05:03 horilla-opensource

Hi @calien666 , Any updates on the fix added for the issue ?

With Regards, Team Horilla

horilla-opensource avatar May 18 '24 15:05 horilla-opensource

Hi @calien666 , We are closing this issue due to inactivity. It seems that there hasn't been any recent activity or discussion, and we believe it may have been resolved or is no longer relevant. If you feel this issue is still important and should be addressed, please feel free to reopen it or create a new issue with updated details.

With Regards, Team Horilla

horilla-opensource avatar Jun 04 '24 10:06 horilla-opensource