aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-02-16 13:08:09 -0800
committerAdam Mathes <adam@trenchant.org>2017-02-16 13:08:09 -0800
commit597e50fc5e66a1f093beaeb345b0dfbf56c606b3 (patch)
tree41f04f6675c55d1179f39a3c2984bd6176be3f87
parent00609adb8f9c1fdecbafc1098e5ae0635b24cf34 (diff)
downloadsnkt-597e50fc5e66a1f093beaeb345b0dfbf56c606b3.tar.gz
snkt-597e50fc5e66a1f093beaeb345b0dfbf56c606b3.tar.bz2
snkt-597e50fc5e66a1f093beaeb345b0dfbf56c606b3.zip
use RFC822 shortcut
-rw-r--r--post/post.go2
1 files changed, 1 insertions, 1 deletions
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()