Hi,
I've fixed a bug in org.apache.commons.feedparser.MetaFeedParser.java to
allow correct date parsing in case of presence of white spaces before or
after the date string.
try {
//ok. Support dc:date
//String v = state.current.getChildText( name, ns );
String v = state.current.getChild( name, ns
).getTextTrim(); // fix
if ( v != null ) {
Date d = null;
if ( ISO8601 ) {
d = ISO8601DateParser.parse( v );
} else {
d = RFC822DateParser.parse( v );
}
listener.onCreated( state, d );
listener.onCreatedEnd();
return true;
}
} catch ( Throwable t ) {
// ignore the exception, so we can just move on
}
return false;
}
Best regards
Diego Peroni
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org