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.
2 parents 13ba0b0 + cecb3c1 commit 21032c8Copy full SHA for 21032c8
shapefile.py
@@ -2613,11 +2613,9 @@ def __dbfRecord(self, record):
2613
elif fieldType == "D":
2614
# date: 8 bytes - date stored as a string in the format YYYYMMDD.
2615
if isinstance(value, date):
2616
- value = "{:04d}{:02d}{:02d}".format(
2617
- value.year, value.month, value.day
2618
- )
+ value = f"{value.year:04d}{value.month:02d}{value.day:02d}"
2619
elif isinstance(value, list) and len(value) == 3:
2620
- value = "{:04d}{:02d}{:02d}".format(*value)
+ value = f"{value[0]:04d}{value[1]:02d}{value[2]:02d}"
2621
elif value in MISSING:
2622
value = b"0" * 8 # QGIS NULL for date type
2623
elif is_string(value) and len(value) == 8:
0 commit comments