Use better format for date, as RFC1123 re-defined it over RFC822, and states 'implementations SHOULD use numeric timezones instead of timezone names'

This commit is contained in:
Bastien Durel
2015-08-27 15:03:04 +02:00
parent ab5b2d12a5
commit dce1f1e988
+1 -1
View File
@@ -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 {