08-23-2019 04:23 AM
Hello,
I am having some problems with DATE and TIMESTAMP when using NXQL queries. According to the documentation:
TIMESTAMP <timestamp>
: a timestamp in ISO format yyyy-
MM-
dd hh:
mm:
ss[.
sss] (the space separator can be replaced by aT
).DATE
: a date in ISO format yyyy-
MM-
dd, converted internally to a timestamp by adding00:00:00
to it.
Now, let's do an example search:
In this test, I only have one document with the following date: 15-08-2019 01:09:09. The problem is that, in my country, we are in GMT+2, so in ElasticSearch I see the following: 2019-08-14T23:09:09.000Z
Anyway, according to nuxeo documentation, DATE '2019-08-14' and TIMESTAMP '2019-08-14 00:00:00' are exactly the same, and timezone shouldn't be a problem, but that's not true. Am I doing something wrong?
Thank you.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.