]> Sergey Matveev's repositories - sgblog.git/commitdiff
ReplaceAll master v0.38.0
authorSergey Matveev <stargrave@stargrave.org>
Wed, 4 Feb 2026 13:26:18 +0000 (16:26 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 4 Feb 2026 15:36:20 +0000 (18:36 +0300)
cmd/sgblog/http.go

index 82ea5b3b452eeb46de7de09cd68cd1326f8c7911..ce4c72306fc1189149a33a043a3feba256c58561 100644 (file)
@@ -604,8 +604,8 @@ func serveHTTP() {
                                                commit.Hash.String(), "#comment", commentN,
                                        }, ""),
                                }},
                                                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"),
                                Content: &atom.Text{
                                        Type: "html",
                                        Body: strings.Join(htmlized, "\n"),