fix OpenAPI OGR datetime handling

This commit is contained in:
Tom Kralidis
2022-05-13 13:48:45 +00:00
parent 3ebdbded9a
commit 645c2e4284
+6
View File
@@ -275,6 +275,12 @@ class OGRProvider(BaseProvider):
fields[fieldName] = {'type': fieldName2}
if fieldName2 == 'datetime':
fields[fieldName] = {
'type': 'string',
'format': 'date-time'
}
# fieldWidth = layer_defn.GetFieldDefn(fld).GetWidth()
# GetPrecision = layer_defn.GetFieldDefn(fld).GetPrecision()