From bed1a363c03c8c9ee21f0b700c31900586f6c75f Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Fri, 11 Oct 2024 19:09:08 +0200 Subject: [PATCH] Error mail: Convert time to current timezone Closes #111. --- owl/error_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owl/error_mail.py b/owl/error_mail.py index acf6b77..7075e44 100644 --- a/owl/error_mail.py +++ b/owl/error_mail.py @@ -65,7 +65,7 @@ def send_email(app: Flask, send_to: str, full_name: str, subject: str, body: str ) ] msg['Subject'] = subject - msg['Date'] = datetime.datetime.now() + msg['Date'] = datetime.datetime.now().astimezone() msg.set_content(body, cte='quoted-printable') -- GitLab