# HG changeset patch # User dadubrow # Date 1280854205 18000 # Node ID 4a0d736ba6a0a14e7b68dbd1a0b17847dcc8193b # Parent 3ebb9339b5aef7d9ceb50bd9bb0e6eb9dc352226 log errors diff -r 3ebb9339b5ae -r 4a0d736ba6a0 core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/SimpleRSSReader.java --- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/SimpleRSSReader.java Tue Aug 03 11:48:28 2010 -0500 +++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/SimpleRSSReader.java Tue Aug 03 11:50:05 2010 -0500 @@ -37,6 +37,8 @@ import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; +import com.nokia.carbide.discovery.ui.Activator; + /** * A simple RSS reader * @see http://www.rssboard.org/rss-specification @@ -94,7 +96,7 @@ link = new URL(value); } catch (MalformedURLException e) { // don't store malformed URLs - e.printStackTrace(); + Activator.logError("Bad URL", e); } } else if (RSSHandler.DESCRIPTION.equals(element) || RSSHandler.SUMMARY.equals(element)) @@ -102,10 +104,11 @@ else if (RSSHandler.PUBDATE.equals(element)) { try { // FIXME parser needs writing!! - pubDate = DateFormat.getInstance().parse(value); + DateFormat dateFormat = DateFormat.getInstance(); + dateFormat.setLenient(true); + pubDate = dateFormat.parse(value); } catch (ParseException e) { // don't store malformed dates -// e.printStackTrace(); } } else if (RSSHandler.CATEGORY.equals(element))