From b6fdd7bd2b1398df08a136b25858da659e3399aa Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 4 Feb 2026 16:26:18 +0300 Subject: [PATCH] ReplaceAll --- cmd/sgblog/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index 82ea5b3..ce4c723 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -604,8 +604,8 @@ func serveHTTP() { commit.Hash.String(), "#comment", commentN, }, ""), }}, - Published: atom.TimeStr(strings.Replace(date, " ", "T", -1)), - Updated: atom.TimeStr(strings.Replace(date, " ", "T", -1)), + Published: atom.TimeStr(strings.ReplaceAll(date, " ", "T")), + Updated: atom.TimeStr(strings.ReplaceAll(date, " ", "T")), Content: &atom.Text{ Type: "html", Body: strings.Join(htmlized, "\n"), -- 2.52.0