Fix case in strptime string

This commit is contained in:
Mark Veidemanis 2022-05-05 22:02:52 +01:00
parent 6f5fc86c8a
commit 5d75545130
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

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")