From dce1f1e98810e5a21355c21537e155498f0448c6 Mon Sep 17 00:00:00 2001 From: Bastien Durel Date: Thu, 27 Aug 2015 15:02:50 +0200 Subject: Use better format for date, as RFC1123 re-defined it over RFC822, and states 'implementations SHOULD use numeric timezones instead of timezone names' --- utils/mail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/mail.go') diff --git a/utils/mail.go b/utils/mail.go index a0abc0df8..7cb178626 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -102,7 +102,7 @@ func SendMail(to, subject, body string) *model.AppError { headers["Subject"] = html.UnescapeString(subject) headers["MIME-version"] = "1.0" headers["Content-Type"] = "text/html" - headers["Date"] = time.Now().Format(time.RFC822) + headers["Date"] = time.Now().Format(time.RFC1123Z) message := "" for k, v := range headers { -- cgit v1.2.3-1-g7c22