Recover all times , executed_at before , so add today

Hello,

I added a time on a ticket on 03/03 5 p.m. (French time), but when I retrieve the times, it is not on the correct date in executed_at

my ticket :
image

My Postman url to get time (wrong url) : /api/v2/time_entries?agent_id=101011145206&executed_after=2022-03-02T00:00:00.000Z&page=1&per_page=100

My Postman (good url) : /api/v2/time_entries?agent_id=101011145206&executed_after=2022-03-03T00:00:00.000Z&page=1&per_page=100

my Postman response :

second question: is it possible to retrieve the times per ticket, without making several requests? , to save the number of requests

example: /api/v2/time_entries/ticket_id=1,2,3,10,12

Thanks to help

Hi @aliweb88,

API input and output of the API will follow the UTC time which is mentioned in the doc

so, kindly convert your local time stamp to UTC format while making API call.

unfortunately, it is not possible as you mentioned in the API.

Hope it helps :slight_smile:

Thanks

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.