telefonicaid / fiware-orion

Context Broker and CEF building block for context data management, providing NGSI interfaces.
https://fiware-orion.rtfd.io/
GNU Affero General Public License v3.0
211 stars 263 forks source link

Support ISO8601 basic format for DateTime #3085

Open fgalan opened 6 years ago

fgalan commented 6 years ago

(Rasied at https://github.com/telefonicaid/iotagent-json/pull/265#pullrequestreview-90464028)

As described in Orion documentation https://fiware-orion.readthedocs.io/en/master/user/ngsiv2_implementation_notes/index.html#datetime-support, Orion only supports ISO8601 for DateTime.

It should support also de basic format (e.g. 20200222T222222). Otherwise, IOTA date compression plugin will not work.

fgalan commented 6 years ago

Vaguely related with old https://github.com/telefonicaid/fiware-orion/issues/1604

jmcanterafonseca commented 6 years ago

In NGSI-LD it is required harmonization of ISO8601 dates to avoid this issue. Please check https://docbox.etsi.org/ISG/CIM/Open/ISG_CIM_NGSI-LD_API_Draft_for_public_review.pdf line 508, clause 4.6.3 Supported data types for Values

-1 to this issue

fgalan commented 6 years ago

This is needed in the southbound interface (i.e. IOTA sending measure to CB) for the NGSIv2. If not implemented, then IOTA compression plugin is not going to work and that part of the integration will break.

In the northbound, regular ISO8601 (the one already supported and I guess the one in 4.6.3 of your cited presentation) will be the one typically used.