diff --git a/atom.go b/atom.go index 62012dc..664ca42 100644 --- a/atom.go +++ b/atom.go @@ -56,7 +56,8 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) { i = new(Item) i.Title = item.S(ns, "title") i.Id = item.S(ns, "id") - i.PubDate = item.S(ns, "updated") + i.PubDate = item.S(ns, "published") + i.Updated = item.S(ns, "updated") i.Description = item.S(ns, "summary") links := item.SelectNodes(ns, "link") diff --git a/item.go b/item.go index 905d868..5803289 100644 --- a/item.go +++ b/item.go @@ -24,6 +24,7 @@ type Item struct { Generator *Generator Contributors []string Content *Content + Updated string Extensions map[string]map[string][]Extension }