aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Johnson <[email protected]>2025-12-11 03:13:16 -0500
committerSamuel Johnson <[email protected]>2025-12-11 03:13:16 -0500
commitfc48d792f1e99094d47353ca0ac2b96cf4bbf1b3 (patch)
tree521e3d66f82f9cea72569bbf74d7744bb6d8768c
parent39ee791d598401ec3c1a01e511253625cfb709c3 (diff)
Why does go time work this way?
-rw-r--r--cmd/web/handlers/export.go3
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)))