2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

fix problem with iso format dates

This commit is contained in:
Matthias
2021-11-04 03:44:30 +01:00
parent 93a28bbaba
commit 7fbf25840f

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