From 086128396aea4f656689002fafc9f26760463c97 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 5 May 2022 22:05:20 +0100 Subject: [PATCH] Re-fix case in date parsing --- handler/lib/money.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/lib/money.py b/handler/lib/money.py index f06596f..122ad21 100644 --- a/handler/lib/money.py +++ b/handler/lib/money.py @@ -381,9 +381,9 @@ class Money(util.Base): date_split[1].replace(".", "") date_split[1].replace(":", "") 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: - 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")