summaryrefslogtreecommitdiff
path: root/mails.go
diff options
context:
space:
mode:
Diffstat (limited to 'mails.go')
-rw-r--r--mails.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mails.go b/mails.go
index f4d6db5..328f1dd 100644
--- a/mails.go
+++ b/mails.go
@@ -42,7 +42,7 @@ func SendActivationcode(to, acCode string, uid model.DBID) bool {
fmt.Fprintf(buf, "To: %s\n", to)
fmt.Fprintf(buf, "From: %s\n", MailFrom)
fmt.Fprintf(buf, "Subject: Activation code for your mailremind account\n")
- fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC822))
+ fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC1123Z))
fmt.Fprintln(buf, "")
@@ -60,7 +60,7 @@ func SendPwresetLink(to, code string, uid model.DBID) bool {
fmt.Fprintf(buf, "To: %s\n", to)
fmt.Fprintf(buf, "From: %s\n", MailFrom)
fmt.Fprintf(buf, "Subject: Password reset request for your mailremind account\n")
- fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC822))
+ fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC1123Z))
fmt.Fprintln(buf, "")