[#812] Get timezone for fetched slot

Migrated from Redmine #812 | Author: Rishabh Shukla
Status: Feedback | Priority: High, I’m very impatient | Created: 2021-11-01


Hi,

I am using this API endpoint +https://user-api-v2.simplybook.me/admin/schedule/available-slots?date=$selectedDayFormatted&provider_id=$providerId&service_id=4+ for fetching available slots.

Response: [
{
“id”: “2021-11-01 11:00:00”,
“date”: “2021-11-01”,
“time”: “11:00:00”
},
{
“id”: “2021-11-01 12:00:00”,
“date”: “2021-11-01”,
“time”: “12:00:00”
},
{
“id”: “2021-11-01 13:00:00”,
“date”: “2021-11-01”,
“time”: “13:00:00”
},
{
“id”: “2021-11-01 14:00:00”,
“date”: “2021-11-01”,
“time”: “14:00:00”
},
{
“id”: “2021-11-01 15:00:00”,
“date”: “2021-11-01”,
“time”: “15:00:00”
},
{
“id”: “2021-11-01 16:00:00”,
“date”: “2021-11-01”,
“time”: “16:00:00”
},
{
“id”: “2021-11-01 17:00:00”,
“date”: “2021-11-01”,
“time”: “17:00:00”
}
]

I would like to know which time zone this is based off. It it is based of the provider time zone, then I would like to know about an API endpoint which can give me that.

Regards.

Dmytro Bondarev wrote:

Hi, it is based on company timezone.
There is not endpoint to get company timezone.

Rishabh Shukla wrote:

Okay thanks, you can close the issue.