cmd/sgblog/http.go | 12 ++++++++---- common.go | 2 +- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index c5d6c20ebb2fb2dbc1d3df21b70bfa7e05eb84b13d5f1011713e0d976e50c05b..bd3ae81df673e85100ac7b131d25c33b51cd34a5aa4e7d066bfef475617a55b8 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -645,8 +645,8 @@ cfg.AtomBaseURL, cfg.URLPrefix, "/", commit.Hash.String(), "#comment", commentN, }, ""), }}, - Published: atom.TimeStr(date), - Updated: atom.TimeStr(date), + Published: atom.TimeStr(strings.Replace(date, " ", "T", -1)), + Updated: atom.TimeStr(strings.Replace(date, " ", "T", -1)), Content: &atom.Text{ Type: "html", Body: strings.Join(htmlized, "\n"), @@ -747,8 +747,12 @@ commit.Hash.String(), "#comment", comment.n, }, ""), }}, - Published: atom.TimeStr(comment.date), - Updated: atom.TimeStr(comment.date), + Published: atom.TimeStr( + strings.Replace(comment.date, " ", "T", -1), + ), + Updated: atom.TimeStr( + strings.Replace(comment.date, " ", "T", -1), + ), Content: &atom.Text{ Type: "html", Body: strings.Join(htmlized, "\n"), diff --git a/common.go b/common.go index 0d70ce1df66ab5c1f43f61507b6cd7588528bd21655010f310eb27d78688c312..0a5f96257bfa0aa159e0e701b20c97db486b3ab1e1b2d63396465f429f6e156e 100644 --- a/common.go +++ b/common.go @@ -15,7 +15,7 @@ "go.cypherpunks.ru/recfile" ) const ( - Version = "0.17.0" + Version = "0.18.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )