summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/account_recovery.py3
-rw-r--r--service/pixelated/assets/recovery.mail.pt-BR2
2 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/account_recovery.py b/service/pixelated/account_recovery.py
index d2110bb3..dae3da1b 100644
--- a/service/pixelated/account_recovery.py
+++ b/service/pixelated/account_recovery.py
@@ -22,6 +22,7 @@ from twisted.logger import Logger
from twisted.mail import smtp
from email import message_from_string
+from email.utils import formatdate
from pixelated.resources.account_recovery_resource import AccountRecoveryResource
@@ -85,4 +86,4 @@ class AccountRecovery(object):
account_recovery_url=account_recovery_url,
backup_email=backup_email,
sender=sender,
- date='Sat, 21 Mar 2015 19:30:09 -0300'))
+ date=formatdate(localtime=True)))
diff --git a/service/pixelated/assets/recovery.mail.pt-BR b/service/pixelated/assets/recovery.mail.pt-BR
index 8ef07a89..7d0f2a58 100644
--- a/service/pixelated/assets/recovery.mail.pt-BR
+++ b/service/pixelated/assets/recovery.mail.pt-BR
@@ -1,6 +1,6 @@
From: {sender}
Date: {date}
-Subject: Código de Recuperação
+Subject: Codigo de Recuperacao
To: {backup_email}
Content-Type: text/plain; charset=UTF-8