Commit d497b327 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed labeling error


Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
parent 46a6ddd7
Pipeline #13821 failed
......@@ -879,7 +879,12 @@ class LabelShortcutEditorWidgetWrapper(QgsEditorWidgetWrapper):
editor = self.widget()
if isinstance(editor, QLineEdit):
value = editor.text()
dt64 = datetime64(value)
dt64 = None
try:
dt64 = datetime64(value)
except:
pass
if isinstance(dt64, np.datetime64) and np.isfinite(dt64):
if typeCode == QVariant.DateTime:
return QDateTime(dt64.astype(object))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment