Forum Discussion

Mike_James's avatar
Mike_James
Ultimate Cover User
2 years ago

AccountRight datetime values returned by API are UTC. Can they be converted within calls?

Unlike the EXO API, there is no indication, nor any documentation that I can see, that datetime values (when reading via the API) are in UTC or when posting are taken as UTC (?). 

 

Exo documentation reads:

 

Time Zones

All responses from the EXO API Server include date and time information expressed in UTC, e.g. '1/1/2014 1am UTC'. All PUT and POST requests to the API Server that include a date and time must include the time zone, e.g. '1/1/2014 1pm NZDT'. If a time zone is not included in a PUT or POST request, the API Server will assume that the request is in the same time zone as the server.

 

 

 

Have I missed any documentation about this? If there is none, please make it clear somewhere. (This possibly explains user queries about invoices dated EOM missing from statements).

 

See https://community.myob.com/t5/MYOB-Business-API/API-DateTime-filter-parameters/td-p/699036 for confirmation to a user.

 

Secondly, can we add anything in our calls to indicate that we are wanting or using a local time, so that these values are automatically converted?