digital-land / technical-documentation

Technical Documentation for the planning data service.
https://digital-land.github.io/technical-documentation/index.html
0 stars 0 forks source link

Fix datetime for LPA #125

Closed Ben-Hodgkiss closed 1 week ago

Ben-Hodgkiss commented 3 weeks ago

Overview

We have seen from an LPA a strange occurrence with datetime. The endpoint has the dates formatted as YYYY-MM-DDTHH:MM:SS. This is an accepted date that should be converted. However, before it reaches the python code, it is being converted (perhaps by ogr2ogr) into YYYY/MM/DD HH:MM:SS. This is currently not accepted.

Tech Approach

Acceptance Criteria

ssadhu-sl commented 2 weeks ago

The time formats accepted in the date.py has "%Y/%m/%d %H:%M:%S%z" which expects a timezone offset at the end. But the endpoint provided by LPA has no timezone so the format fit for it would be "%Y/%m/%d %H:%M:%S".

ssadhu-sl commented 1 week ago

very similar issue: https://github.com/OSGeo/gdal/issues/2403