Fix case in strptime string

This commit is contained in:
2022-05-05 22:02:52 +01:00
parent 6f5fc86c8a
commit 5d75545130

View File

@@ -383,7 +383,7 @@ class Money(util.Base):
created_at = "+".join(date_split) created_at = "+".join(date_split)
date_parsed = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%S%Z") date_parsed = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%S%Z")
else: else:
date_parsed = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%S.%fZ") date_parsed = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%S.%fz")
date_formatted = date_parsed.strftime("%d-%m-%Y") date_formatted = date_parsed.strftime("%d-%m-%Y")