How I can change the REST API timezone to be consistent with my CMIS queries results?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

How I can change the REST API timezone to be consistent with my CMIS queries results?

I am using Alfresco Enterprise 5.2 and CMIS 1.1. I do CMIS queries and it returns the right timezone EST but when I use the REST API it always returns UTC. How I can change the REST API timezone to be consistent with my CMIS queries results?

2 Replies
Highlighted
Senior Member

Re: How I can change the REST API timezone to be consistent with my CMIS queries results?

Hi

CMIS queries can be executed in many ways. What exactly are you comparing? The same query via the CMIS browser binding  CMIS QL using the public search API? I believe the public API defines how dates are returned somewhere.

Can you give the example query?

Andy

Highlighted
Active Member

Re: How I can change the REST API timezone to be consistent with my CMIS queries results?

We have the same problem with REST API v1:

But openDate is 2017-12-27!!!

The same with BirthDate:

Real birthdate is 01.01.1988!!

The datatype is date:

This is inadequate behaviour of Alfresco Rest API (get nodes, search api) ((

Does anyone known how to fix this case/error?