From b113e1cde05a543a1b87469b85fbbd43fced8381 Mon Sep 17 00:00:00 2001 From: Carina Antunes <carina.oliveira.antunes@cern.ch> Date: Mon, 14 Jun 2021 17:09:05 +0000 Subject: [PATCH] Fix date format --- notifications_consumer/processors/email/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications_consumer/processors/email/processor.py b/notifications_consumer/processors/email/processor.py index 1616e45..83fb029 100644 --- a/notifications_consumer/processors/email/processor.py +++ b/notifications_consumer/processors/email/processor.py @@ -36,7 +36,7 @@ class EmailProcessor(Processor): created_at = kwargs.get("created_at", "") try: - created_at = datetime.strptime(created_at, "%m/%d/%Y, %H:%M:%S").strftime("%m/%d/%Y, %H:%M:%S") + created_at = datetime.strptime(created_at, "%m/%d/%Y, %H:%M:%S").strftime("%d/%m/%Y, %H:%M:%S") except Exception: logging.exception("Failed to process created at date") -- GitLab