From 597e50fc5e66a1f093beaeb345b0dfbf56c606b3 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Thu, 16 Feb 2017 13:08:09 -0800 Subject: use RFC822 shortcut --- post/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post/post.go b/post/post.go index 5634340..278b4df 100644 --- a/post/post.go +++ b/post/post.go @@ -153,7 +153,7 @@ func (p *Post) parse() { Mon Jan 2 15:04:05 MST 2006 */ p.Date = p.Time.Format("January 2, 2006") - p.RssDate = p.Time.Format("Mon, 2 Jan 2006 15:04:05 GMT") + p.RssDate = p.Time.Format(time.RFC822) p.InFuture = time.Now().Before(p.Time) p.Permalink = p.GenPermalink() -- cgit v1.2.3