-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Function in question:
timetracker/lib/Controller/AjaxController.php
Line 1224 in 710cd33
| public function getGoals(){ |
I am having trouble to get the goals displayed correctly. I have set up a 20 hours weekly goal, beginning on 1. September 2021

Unfortunately, no working interval is taken into consideration for this goal. (There are for sure a lot of working intervals in this time period.) I don't think it is related to some offset or UTC stuff.
I think it is related to this line in the code. I tried to debug it a bit and logged variables to a file. Here is what I get right before the if clause:
interval: 2021-09-27
$repItem->time: 1630476900
It appears like the if clause can never be true because of the data type mismatch, so that the code can never reach the break condition of this if clause. Therefore all hours are accounted to the "Past Debt in Hours" and "Remaining Hours" but the sum of "Hours spend" is always zero.
Does anybody else have this problem? If needed, I can also share more information about my setup.
Best regards
Georg