fix problem with iso format dates

This commit is contained in:
Matthias 2021-11-04 03:44:30 +01:00
parent 93a28bbaba
commit 7fbf25840f
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -316,7 +316,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
if not name:
name = self.commit.get('date')
else:
name = datetime.fromisoformat(name)
name = datetime.fromisoformat(str(name))
if not name:
name = _('No date found')
return name