camptocamp / oapi-poc

OGC API & STAC - Proof of Concept
BSD 3-Clause "New" or "Revised" License
33 stars 3 forks source link

"datetime" parameter: issue with ending 'Z' in datetime value #4

Closed p1d1d1 closed 2 years ago

p1d1d1 commented 2 years ago

@b4l when doing a request with the datetime parameter, the API requires the datatime value to have an ending 'Z', otherwise and error is returned. Not sure this is the right behaviour. IMHO it shoul accept datetimes without the ending 'Z'. Some clients (e.g. QGIS) do not send the ending 'Z' in request and won't be able to use the API

b4l commented 2 years ago

@p1d1d1 you can provide anything that conforms to https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6. No timezone indication is not an option.