diff --git a/feed_test.go b/feed_test.go index 6fa5b5e..ac5a4cb 100644 --- a/feed_test.go +++ b/feed_test.go @@ -65,38 +65,38 @@ var rssOutput = ` discussion about tech, footie, photos This work is copyright © Benjamin Button jmoiron@jmoiron.net (Jason Moiron) - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 Limiting Concurrency in Go http://jmoiron.net/blog/limiting-concurrency-in-go/ A discussion on controlled parallelism in golang Jason Moiron - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 Logic-less Template Redux http://jmoiron.net/blog/logicless-template-redux/ More thoughts on logicless templates - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 Idiomatic Code Reuse in Go http://jmoiron.net/blog/idiomatic-code-reuse-in-go/ How to use interfaces <em>effectively</em> - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 Never Gonna Give You Up Mp3 http://example.com/RickRoll.mp3 Never gonna give you up - Never gonna let you down. - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 String formatting in Go http://example.com/strings How to use things like %s, %v, %d, etc. - 16 Jan 13 21:52 EST + Wed, 16 Jan 2013 21:52:35 -0500 ` diff --git a/rss.go b/rss.go index 62d9d7e..3381f74 100644 --- a/rss.go +++ b/rss.go @@ -92,7 +92,7 @@ func newRssItem(i *Item) *RssItem { Link: i.Link.Href, Description: i.Description, Guid: i.Id, - PubDate: anyTimeFormat(time.RFC822, i.Created, i.Updated), + PubDate: anyTimeFormat(time.RFC1123Z, i.Created, i.Updated), } intLength, err := strconv.ParseInt(i.Link.Length, 10, 64) @@ -108,8 +108,8 @@ func newRssItem(i *Item) *RssItem { // create a new RssFeed with a generic Feed struct's data func (r *Rss) RssFeed() *RssFeed { - pub := anyTimeFormat(time.RFC822, r.Created, r.Updated) - build := anyTimeFormat(time.RFC822, r.Updated) + pub := anyTimeFormat(time.RFC1123Z, r.Created, r.Updated) + build := anyTimeFormat(time.RFC1123Z, r.Updated) author := "" if r.Author != nil { author = r.Author.Email