falsche Datumsangabe in Attributtagelle gefixt

This commit is contained in:
2026-05-22 08:46:42 +02:00
parent 2a4cdd93dc
commit 7c833c7aa0
+7 -1
View File
@@ -159,7 +159,13 @@ def verfahrensgebiet_alkis(tab_widget):
for attr in BROR_ATTRIBUTE_FELDER:
try:
val = first_feat.attribute(attr)
attrs.append(str(val) if val is not None else "")
if val is None:
attrs.append("")
elif type(val).__name__ == "QDate":
# QDate-Objekte als DD.MM.YYYY formatieren
attrs.append(val.toString("dd.MM.yyyy"))
else:
attrs.append(str(val))
except Exception:
attrs.append("")