[#713] Method book in "Company administration service" ignores param $clientTimeOffset

Migrated from Redmine #713 | Author: Pavel Merkulov
Status: New | Priority: High, I’m very impatient | Created: 2021-06-10


Method book in “Company administration service” ignores param $clientTimeOffset

Redmine Admin wrote:

Please provide raw http request

Pavel Merkulov wrote:

{
“url”: “/admin”,
“method”: “post”,
“data”: “{"jsonrpc":"2.0","method":"book","params":[1,1,"189","2021-06-11","11:00:00","2021-06-11","11:15:00",120,{"name":"Pavel","email":"merkulov.pvl@gmail.com","phone":"+380633274555"}],"id":1}”,
“headers”: {
“Accept-Encoding”: “deflate, gzip, compress”,
“Content-Type”: “application/json;charset=utf-8”,
“X-Company-Login”: “eurogroup”,
“X-User-Token”: “dcb1eaf986db5eccd56b5c3c002b244f411038207576f90ddc3c8383751b9abf”,
“User-Agent”: “axios/0.21.1”,
“Content-Length”: 187
},
“baseURL”: “https://user-api.simplybook.me”,
}

Redmine Admin wrote:

HI,
what means “ignores”? - do you have time conversion options enabled in your company settings: “Send notification in client timezone” and “Show booking page in client timezone?”

Pavel Merkulov wrote:

Hello! We have a client (GMT + 5) and our company (GMT + 3). When we call the book method (API documentation | SimplyBook.me Online Scheduling)
sending there client’s time (for example 11:00) and a time offset of 120 minutes, we expect to see a record with a time of 9:00 (company time), in the admin panel Appointment booking service and free online booking service in the calendar section, but in fact we see 11:00

Redmine Admin wrote:

do you have time conversion options enabled in your company settings: “Send notification in client timezone” and “Show booking page in client timezone?”

Pavel Merkulov wrote:

Yes, we have time conversion options enabled in our company settigns (“Send notification in client timezone” and “Show booking page in client timezone”).

Redmine Admin wrote:

With API client is always booking in company time, offset is used to send notifications only