aboutsummaryrefslogtreecommitdiffstats
path: root/import_issues.py
diff options
context:
space:
mode:
Diffstat (limited to 'import_issues.py')
-rwxr-xr-ximport_issues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/import_issues.py b/import_issues.py
index 4cd6ab4..f487211 100755
--- a/import_issues.py
+++ b/import_issues.py
@@ -108,7 +108,7 @@ import smtplib
import time
from email.message import EmailMessage
from email.utils import format_datetime, make_msgid
-from datetime import datetime
+from datetime import datetime, timezone
from pathlib import Path
from typing import Dict, List, Optional
@@ -165,7 +165,7 @@ def do_mail(
email_count += 1
print(f"---- #{email_count}")
- date = format_datetime(datetime.utcnow())
+ date = format_datetime(datetime.now(timezone.utc))
msg_id = make_msgid()
if mode == "print":