This avoids cases where a blog entry might be unintentionally (or intentionally)
set with a date in the future in the incoming RSS feed and as such stays at the
frontpage of planet until that date is reached.
Instead, whenever something is parsed to be in the future, set the post date to
the time of the parsing (because it clearly exists at this time).
self._trace("Failed to get date for entry %s (keys %s)" % (entry.link, entry.keys()))
continue
+ if dat > datetime.datetime.now():
+ dat = datetime.datetime.now()
+
if self.newest_entry_date:
if dat > self.newest_entry_date:
self.newest_entry_date = dat