diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/web/handlers/export.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web/handlers/export.go b/cmd/web/handlers/export.go index 23bb480..8bdb3b4 100644 --- a/cmd/web/handlers/export.go +++ b/cmd/web/handlers/export.go @@ -7,6 +7,7 @@ import ( "net/http" "strconv" "strings" + "time" "golang.org/x/net/html" @@ -64,7 +65,7 @@ func (ctx *rssExportContext) feed(w http.ResponseWriter, r *http.Request) { return } - p.FormattedTime = p.Time.Format("Mon, 02 Jan 2006 15:04:05 MST") + p.FormattedTime = p.Time.Format(time.RFC1123) title := "" z := html.NewTokenizer(strings.NewReader(string(p.Brief))) |
