Skip to content

Spend hours in goals not displayed #147

@ggeorgg

Description

@ggeorgg

Function in question:

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
grafik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions