From bf8c82527b97ff6e41cab2a1cc8a754eb4a9f7fb Mon Sep 17 00:00:00 2001 From: Benjamin Jasper Date: Tue, 9 Jun 2026 13:55:09 +0200 Subject: [PATCH] fix: added missing publish date in atom --- atom.go | 1 + feed_test.go | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/atom.go b/atom.go index 73de995..12693a9 100644 --- a/atom.go +++ b/atom.go @@ -120,6 +120,7 @@ func newAtomEntry(i *Item) *AtomEntry { Links: []AtomLink{{Href: link.Href, Rel: link_rel, Type: link.Type}}, Id: id, Updated: anyTimeFormat(time.RFC3339, i.Updated, i.Created), + Published: anyTimeFormat(time.RFC3339, i.Created, i.Updated), } // if there's a description, assume it's html diff --git a/feed_test.go b/feed_test.go index 837cfa6..f98aa62 100644 --- a/feed_test.go +++ b/feed_test.go @@ -22,6 +22,7 @@ var atomOutput = `<p>Go's goroutines make it easy to make <a href="http://collectiveidea.com/blog/archives/2012/12/03/playing-with-go-embarrassingly-parallel-scripts/">embarrassingly parallel programs</a>, but in many &quot;real world&quot; cases resources can be limited and attempting to do everything at once can exhaust your access to them.</p> + 2013-01-16T21:52:35-05:00 A discussion on controlled parallelism in golang @@ -33,6 +34,7 @@ var atomOutput = ` More thoughts on logicless templates @@ -40,6 +42,7 @@ var atomOutput = ` How to use interfaces <em>effectively</em> @@ -48,6 +51,7 @@ var atomOutput = ` Never gonna give you up - Never gonna let you down. @@ -56,6 +60,7 @@ var atomOutput = ` How to use things like %s, %v, %d, etc. @@ -64,6 +69,7 @@ var atomOutput = `Don't communicate by sharing memory, share memory by communicating. + 2013-01-16T21:52:35-05:00 ` @@ -309,30 +315,35 @@ var atomOutputSorted = ` Logic-less Template Redux 2013-01-17T21:52:35-05:00 tag:jmoiron.net,2013-01-17:/blog/logicless-template-redux/ + 2013-01-17T21:52:35-05:00 Idiomatic Code Reuse in Go 2013-01-17T09:52:35-05:00 tag:jmoiron.net,2013-01-17:/blog/idiomatic-code-reuse-in-go/ + 2013-01-17T09:52:35-05:00 Never Gonna Give You Up Mp3 2013-01-17T07:52:35-05:00 tag:example.com,2013-01-17:/RickRoll.mp3 + 2013-01-17T07:52:35-05:00 String formatting in Go 2013-01-16T21:52:35-05:00 tag:example.com,2013-01-16:/strings + 2013-01-16T21:52:35-05:00 `