Skip to content
Snippets Groups Projects
Commit bed1a363 authored by Martin Mareš's avatar Martin Mareš
Browse files

Error mail: Convert time to current timezone

Closes #111.
parent 8095bda8
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ def send_email(app: Flask, send_to: str, full_name: str, subject: str, body: str ...@@ -65,7 +65,7 @@ def send_email(app: Flask, send_to: str, full_name: str, subject: str, body: str
) )
] ]
msg['Subject'] = subject msg['Subject'] = subject
msg['Date'] = datetime.datetime.now() msg['Date'] = datetime.datetime.now().astimezone()
msg.set_content(body, cte='quoted-printable') msg.set_content(body, cte='quoted-printable')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment