Skip to content

Conversation

@OmarShawky1
Copy link

Seconds should be subtracted from _seconds-(minuteToSeconds+hoursToSeconds), otherwise, if the workingTime>60 the time will be as following:
image

To reproduce the bug, just put 61 minutes, they will be converted to an hour and minute, thus, when you subtract 60 seconds from _seconds you will get those 3600.

However, this does not impact the calculation of time, it is just what is printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant