In some cases, the above endpoint provides an incorrect enddate. For example, the end
date should be 2024-05-14. The frontend displays the correct value. But the API returns an incorrect value. The duration value seems to be correct and matches the frontend. What is the reason for this problem?
Hey @m.mueller ,
thanks for letting us know! I will create a bug ticket for this. It would be really helpful if you could send me the trace id header of this request, so I can check what happened to the timetracking as I cannot reproduce the issue myself unfortunately. You can find the Trace-Id in the response headers of this call in the network tab:
Thanks a lot!
Ian
Hi @ian
I have found the problem. If you start the time tracking and forget to stop it in the evening (you only stop the time tracking the next morning), then exactly this problem occurs. The correct timestamp is written to the database. However, there is no way to correct the mistake, neither via the user interface nor via the API.
It is interesting to note, that the value for the duration is still updated correctly.
Regard,
Mathias
Hi @m.mueller,
thanks a lot for that info! I will try to repro it and get back to you as soon as possible.
If you need to fix the end date, you should be able to do a simple PUT call for that timeentry via PUT /timeentries/id with the same startTime, startDate, and endTime. Then the endDate gets recalculated.
Best regards
Ian
Hi @m.mueller,
we finally fixed the automatic timer stopping behavior. So now timetrackings that run for 24h and are then stopped have 24h as their maximum duration. We also saw that the end date and time was not set in certain cases, which is now also fixed. We ran a fix on the existing data, so there should be no time entry without end date and time if it was started via the timer and is already finished.
For the time entries which were stopped incorrectly (so 1:15h instead of 24h) we unfortunately cannot easily fix those as we don’t have the correct duration in this case.
Sorry for the inconvenience!
Best wishes
Ian