Reputation: 849
Created an event in google calendar from 24th 06:00 pm to 25th 5:00 pm
When querying the Free Busy it's not returning actual slots
Some one suggest US how to fix this issue
Upvotes: 0
Views: 359
Reputation: 6052
Seems like the issue here stems from the timeMin
and timeMax
parameters you have supplied for the request.
The timezone of your calendar is GMT-06:00
but timeMin
and timeMax
from the request are set for GMT
hence the results you are receiving.
What you should do is to change the timeMin
and timeMax
to:
"timeMin": "2021-10-24T00:00:00-06:00",
"timeMax": "2021-10-25T23:29:00-06:00"
Please bear in mind that the timezone
parameter is used to indicate the time zone used in the response.
Upvotes: 1