summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/model
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/model')
-rw-r--r--service/pixelated/adapter/model/mail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py
index 9f2db32e..5a0a1b92 100644
--- a/service/pixelated/adapter/model/mail.py
+++ b/service/pixelated/adapter/model/mail.py
@@ -241,7 +241,7 @@ class InputMail(Mail):
input_mail = InputMail()
input_mail.headers = {key.capitalize(): value for key, value in mail_dict.get('header', {}).items()}
- input_mail.headers['Date'] = date.iso_now()
+ input_mail.headers['Date'] = date.mail_date_now()
input_mail.body = mail_dict.get('body', '')
@@ -254,7 +254,7 @@ class InputMail(Mail):
def from_python_mail(mail):
input_mail = InputMail()
input_mail.headers = {key.capitalize(): value for key, value in mail.items()}
- input_mail.headers['Date'] = date.iso_now()
+ input_mail.headers['Date'] = date.mail_date_now()
input_mail.headers['Subject'] = mail['Subject']
input_mail.headers['To'] = InputMail.FROM_EMAIL_ADDRESS
input_mail._mime = MIMEMultipart()