1
0
mirror of https://github.com/golang/go synced 2024-10-01 11:18:32 -06:00
go/blog
Brian Gitonga Marete 4a813e4058 blog: Fix atom feed's `updated' time when there's only one article.
When computing the time for the "updated" tag of the atom feed, the
current code checks if there is more than one article and if that is
not true, it sets the time to the zero time.Time. This means that
the feed also gets the zero time in this tag when there is exactly one
article.

This trivial patch fixes this so that when there is exactly one
article, the time is set to that article's time.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/18420044
2013-10-29 15:55:27 +09:00
..
atom go.tools/blog/atom: move package from go.blog 2013-09-19 10:58:11 +10:00
blog.go blog: Fix atom feed's `updated' time when there's only one article. 2013-10-29 15:55:27 +09:00