[#1092] Date/time with API

Migrated from Redmine #1092 | Author: Sarah Esteve
Status: Feedback | Priority: Normal | Created: 2023-08-15


Hello, I’m using the API REST to get booking details. The Call returns “start_date” UTC but not good with local time. Let me give you an example :
Let’s say I’m located in France (GMT+2) and I’m booking for 08/17/2023 at 7:30pm. The location is located in France.
The API call returns Timestamp as 1692300600000 so UTC 2023-08-17T19:30:00.000Z but if I convert it to French local time this is 2023-08-17T21:30:00.000

What do I miss ?

Dmytro Bondarev wrote:

Hi,
It returns datetime in your company timezone.

Sarah Esteve wrote:

solved by myself thx