If you want to include a feed in Planet, then that feed must have
item-level <pubDate> elements but there is no requirement for
<lastUpdated>.
If we don't find lastUpdated, we set it to the current time (just
before that code fragment that you included).
- Dave
On Sep 6, 2005, at 7:20 AM, Enrique Rodriguez wrote:
It looks like planet feeds need to have the <lastBuildDate/> Tag. One
of the users of our planet, uses a weblog software (typo) that does
not use this tag on its feed.
It look like this tag is not required by rss2 especification.
Did you know it? Am I wrong?
The problem is on Rome and com.sun.syndication library
*if* (lastUpdated!=*null* && sub.getLastUpdated()!=*null*)
{
Calendar feedCal = Calendar.getInstance();
feedCal.setTime(lastUpdated);
Calendar subCal = Calendar.getInstance();
subCal.setTime(sub.getLastUpdated());
*if* (!feedCal.after(subCal)) {
*if* (logger.isDebugEnabled())
{
String msg = MessageFormat.format(
* " Skipping ({0} / {1})"*,
*new* Object[] {
lastUpdated, sub.getLastUpdated()});
logger.debug(msg);
}
*continue*;
}
}