From fc48d792f1e99094d47353ca0ac2b96cf4bbf1b3 Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Thu, 11 Dec 2025 03:13:16 -0500 Subject: Why does go time work this way? --- cmd/web/handlers/export.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) -- cgit v1.2.3