Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone ignored #1612

Open
live-buildings opened this issue May 21, 2024 · 2 comments
Open

Timezone ignored #1612

live-buildings opened this issue May 21, 2024 · 2 comments

Comments

@live-buildings
Copy link

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 kzangeli self-assigned this May 21, 2024
@kzangeli kzangeli added the bug Something isn't working label May 21, 2024
@kzangeli
Copy link
Collaborator

kzangeli commented May 21, 2024

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
Copy link
Collaborator

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.

@kzangeli kzangeli added Fixed - needs validation and removed bug Something isn't working labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants