We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fe98e commit 09afe27Copy full SHA for 09afe27
shapefile.py
@@ -937,9 +937,9 @@ def __dbfRecords(self):
937
elif fieldType == "D":
938
# date: 8 bytes - date stored as a string in the format YYYYMMDD.
939
if isinstance(value, date):
940
- value = b"%s%s%s"%(value.year,value.month,value.day)
+ value = value.strftime("%Y%m%d")
941
elif isinstance(value, list) and len(value) == 3:
942
- value = b"%s%s%s"%value
+ value = date(*value).strftime("%Y%m%d")
943
elif value in MISSING:
944
value = b('0') * 8 # QGIS NULL for date type
945
else:
0 commit comments