It seems Atom feeds from Ning use <updated> tags to hold the news item date... See http://bassingbourntransitionvillage.ning.com/notes/index/feed?type=all&... for an example.
Currently _parser_common_syndication_atom10_parse() in common_syndication_parser.inc assumes the date will be either 'published' or 'issued', but misses 'updated' - hence many feed items from Ning are always set to 'now'.
The attached patch looks for and uses 'updated' as a fall back.
(this works hand in hand with #1008384: Feeds not pulling publication date with feed using dc:date and RSS 2.0 (please commit!) to help ensure sensible date values are found)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | atom-updated-1027020-3.patch | 890 bytes | getgood |
| Feeds_6.x-ATOM_parser_use_updated_date.patch | 1.42 KB | jim kirkpatrick |
Comments
Comment #1
Yura commentedTested with 6.x-1.0-beta10 successfully. Managing News getting right pubdate from atom feeds now.
Comment #2
jim kirkpatrick commentedComment #3
getgood commentedThis patch applies and fixes the same problem in 7.x-2.0-alpha4. I'm not sure what the convention is when it comes to creating an issue to forward port a patch. If anyone could lend some advice, I'd appreciate it.
Also, I can't find the "issued" tag anywhere in the ATOM specification. Is it there for legacy reasons, or has it just been forgotten? If it's not actually supported anymore, a better patch might be the one attached.
Comment #4
twistor commentedThe original patch was applied to 7.x at some point long ago.
It was applied to 6.x here http://drupalcode.org/project/feeds.git/commit/d3f23b0.