FIWARE / context.Orion-LD

Context Broker and CEF building block for context data management which supports both the NGSI-LD and the NGSI-v2 APIs
https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.06.01_60/gs_CIM009v010601p.pdf
GNU Affero General Public License v3.0
50 stars 43 forks source link

Timezone ignored #1612

Open live-buildings opened 4 months ago

live-buildings commented 4 months ago

The following query works well and returns 29 Sites in my case: http://orion/ngsi-ld/v1/entities?type=Site&q=**modifiedAt>2024-05-14T04:00:00Z**

The following query does not work as the date is completely ignored. Therefore it returns my entire list of Sites (140) whereas the date is the same but expressed with timezone. http://orion/ngsi-ld/v1/entities?type=Site&q=**modifiedAt>2024-05-14T06:00:00+02:00**

As it is a correct ISO 8601 date format, the timezone should be accepted I guess.

kzangeli commented 4 months ago

ok, that seems like a bug indeed. Timezones, supposedly, are taken into account and the feature is somewhat tested. Apparently not 100% working. I will have a look at this asap.

kzangeli commented 4 months ago

Bug reproduced and hopefully fixed. The tests for the fix are minimal. Please test again, with a newer docker image (1.6.0-PRE-1609 on dockerhub) and let me know.