--- a/engine/src/FeedParser.cpp Sat Oct 16 15:36:19 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;