mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 21:38:48 +00:00
fix problem with iso format dates
This commit is contained in:
parent
93a28bbaba
commit
7fbf25840f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user