road0001 / as3syndicationlib

Automatically exported from code.google.com/p/as3syndicationlib
0 stars 0 forks source link

Some Atom feeds use "updated" field for date instead of "published" #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to parse feed http://feeds.sophos.com/fr/atom1_0-sophos-security-
news.xml 
2.
3.

What is the expected output? What do you see instead?

you get null for Atom10Item.date instead of a valid date

What version of the product are you using? On what operating system?

last version on Windows XP

Please provide any additional information below.

you can correct this issue by add "this.entry.updated" after a null test of  
"this.entry.published" in line 121 of 
com.adobe.xml.syndication.generic.Atom10Item Class

public function get date():Date
{
    return this.entry.published || this.entry.updated;
}

Original issue reported on code.google.com by jonathan...@gmail.com on 26 May 2010 at 2:53