Unexpected behaviour when add Time Spent to Task via API [v15.0.1]

When I trying to add Time Spent via API

GET /api/index.php/tasks/1/addtimespent
{ 
    date: "2022-04-21 16:22:00",
    duration: 3600,
    user_id: 0,
    note: "test"
}

it response Success and change duration field for task when I call

GET /api/index.php/tasks/1

BUT when i open this task in web app /projet/tasks/task.php?id=1 tab Time Spent, there is no any records, however in the task list Time Spent calculates correct.

If you need any additional info just ask me,

Hello,

You can try to put your issue on GitHub

tnx
done it Unexpected behaviour when add Time Spent to Task via API [v15.0.1] · Issue #20685 · Dolibarr/dolibarr · GitHub

@ksar Do the main developers appear here or is it just the community?

Additional info:
As I understand problem cause I set user_id to 0.

API doc says:
user_id (integer, optional): User (Use 0 for connected user)

BUT As I see in DB, it set user_id to 0, not connected user. When I changed it to my user_id, records appears at Time spent tab.

Hello,

Some developers are coming time to time on the forum.
But for this kind of questions, GitHub is the best.