summaryrefslogtreecommitdiffstats
path: root/utils/mail.go
diff options
context:
space:
mode:
authorBastien Durel <bastien@durel.org>2015-08-27 15:02:50 +0200
committerBastien Durel <bastien@durel.org>2015-08-27 15:03:04 +0200
commitdce1f1e98810e5a21355c21537e155498f0448c6 (patch)
treeaf67dbf65fb12aae840ddfa7488f60846390cbe5 /utils/mail.go
parentab5b2d12a56bb2470893a1738ff65fe49d1426a5 (diff)
downloadchat-dce1f1e98810e5a21355c21537e155498f0448c6.tar.gz
chat-dce1f1e98810e5a21355c21537e155498f0448c6.tar.bz2
chat-dce1f1e98810e5a21355c21537e155498f0448c6.zip
Use better format for date, as RFC1123 re-defined it over RFC822, and states 'implementations SHOULD use numeric timezones instead of timezone names'
Diffstat (limited to 'utils/mail.go')
-rw-r--r--utils/mail.go2
1 files changed, 1 insertions, 1 deletions
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 {