diff -Naur old/syndication/tools.cpp new/syndication/tools.cpp
--- old/syndication/tools.cpp	2008-07-15 13:30:34.000000000 +0200
+++ new/syndication/tools.cpp	2008-07-16 10:29:54.504493076 +0200
@@ -61,14 +61,14 @@
 
 time_t parseISODate(const QString& str)
 {
-    time_t res = KDateTime::fromString(str, KDateTime::ISODate).toTime_t();
-    return res != -1 ? res : 0;
+    const KDateTime kdt = KDateTime::fromString(str, KDateTime::ISODate);
+    return kdt.isValid() ? kdt.toTime_t() : 0;
 }
 
 time_t parseRFCDate(const QString& str)
 {
-    time_t res = KDateTime::fromString(str, KDateTime::RFCDate).toTime_t();
-    return res != -1 ? res : 0;
+    const KDateTime kdt = KDateTime::fromString(str, KDateTime::RFCDate);
+    return kdt.isValid() ? kdt.toTime_t() : 0;
 }
 
 time_t parseDate(const QString& str, DateFormat hint)
