-
Notifications
You must be signed in to change notification settings - Fork 89
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
NGSI-LD observedAt is ignoring timezone from service or device for multivariable sensor #1544
Comments
Maybe @jason-fox could provide some feedback on this |
In NGSI-LD, all dates are defined using ISO 8601: 2004 Data elements and interchange formats -- Information interchange --Representation of dates and times. Specifically. from the ETSI NGSI-LD Specification
I guess the reason behind this is because NGSI-LD is primarily used for data exchange and data spaces. Date formats are tricky things and if only Zulu time is supported for everything then it makes exchange easier. For example if you are retrieving data from a federation of multiple brokers, then the value with with most recent |
@jason-fox Thanks a lot for the explanation. I missed these ETSI NGSI-LD Specs. Can you please add it on some of your very useful tutorials. So i supposed that i need to add to the sensor entity on the Context Broker the timezone as a static_attributes so i the end to have the correct time of the measurement. |
I provision a service with "timezone": "Asia/Tokyo" using MQTT binding.
The sensor push several attributes/measruements. The issue is the timezone for observedAt is always UTC and ignoring any timezone provided by service or device.
Docker image date time: Thu Dec 14 11:53:07 UTC 2023
IoT Agent log -> "observedAt": "2023-12-14T11:53:07.152Z**"
Orion-LD -> "observedAt": "2023-12-14T11:53:07.152Z"
What i expected Orion-LD -> "observedAt": "2023-12-14T20:53:07.152Z"
Maybe the bug is here
The text was updated successfully, but these errors were encountered: