diff -r ed4ed5330d83 -r 64a2995a3e08 engine/src/FeedParser.cpp --- a/engine/src/FeedParser.cpp Sat Oct 16 15:41:38 2010 +0100 +++ b/engine/src/FeedParser.cpp Sat Oct 16 15:58:45 2010 +0100 @@ -272,7 +272,27 @@ break; case EStateItem: if (str.CompareF(KTagItem) == 0) - { + { + + // check if we have a valid pubdate + + if (iActiveShow->PubDate().Int64() == 0) + { + // set pubDate to present time + TTime now; + now.UniversalTime(); + + // but we want reverse sorting, so let's do a little trick... + TTimeIntervalHours delta; + delta = iItemsParsed; + + // ... remove an hour per show we've parsed so far + now -= delta; + + iActiveShow->SetPubDate(now); + } + + iCallbacks.NewShowL(*iActiveShow); delete iActiveShow;