[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/librss
From: Frerich Raabe <raabe () kde ! org>
Date: 2004-01-28 10:48:11
Message-ID: 20040128104811.07E879DF4 () office ! kde ! org
[Download RAW message or body]
CVS commit by raabe:
- Extract dc:date as well. I lost track of who sent me this patch, but I
think it was Richard Laerkaeng.
CCMAIL:richard@goteborg.utfors.se
M +9 -0 document.cpp 1.17
--- kdenetwork/librss/document.cpp #1.16:1.17
@@ -339,4 +339,13 @@ Document::Document(const QDomDocument &d
}
+ if (!(elemText = extractNode(channelNode, QString::fromLatin1("dc:date"))).isNull()) {
+ time_t _time = KRFCDate::parseDateISO8601(elemText);
+ /* \bug This isn't really the right way since it will set the date to
+ * Jan 1 1970, 1:00:00 if the passed date was invalid; this means that
+ * we cannot distinguish between that date, and invalid values. :-/
+ */
+ d->pubDate.setTime_t(_time);
+ }
+
if (!(elemText = extractNode(channelNode, QString::fromLatin1("lastBuildDate"))).isNull()) {
time_t _time = KRFCDate::parseDate(elemText);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic