2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 05:26:45 +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
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: if not name:
name = self.commit.get('date') name = self.commit.get('date')
else: else:
name = datetime.fromisoformat(name) name = datetime.fromisoformat(str(name))
if not name: if not name:
name = _('No date found') name = _('No date found')
return name return name