Update rss pubDate

Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
This commit is contained in:
ZhiFeng Hu
2015-11-22 15:14:22 +08:00
parent 413fe3732e
commit f3731b977a
+3 -3
View File
@@ -92,7 +92,7 @@ func newRssItem(i *Item) *RssItem {
Link: i.Link.Href,
Description: i.Description,
Guid: i.Id,
PubDate: anyTimeFormat(time.RFC1123, 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.RFC1123, r.Created, r.Updated)
build := anyTimeFormat(time.RFC1123, 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