blam r540 - trunk/lib
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r540 - trunk/lib
- Date: Sun, 6 Apr 2008 16:41:26 +0100 (BST)
Author: cmartin
Date: Sun Apr 6 16:41:26 2008
New Revision: 540
URL: http://svn.gnome.org/viewvc/blam?rev=540&view=rev
Log:
Some entries don't have a date.
Modified:
trunk/lib/RSSFeed.cs
Modified: trunk/lib/RSSFeed.cs
==============================================================================
--- trunk/lib/RSSFeed.cs (original)
+++ trunk/lib/RSSFeed.cs Sun Apr 6 16:41:26 2008
@@ -92,7 +92,9 @@
Channel[i].Item[j].Guid = feed.Channel[i].Item[j].Guid;
Channel[i].Item[j].Description = feed.Channel[i].Item[j].Description;
Channel[i].Item[j].Content = feed.Channel[i].Item[j].ContEnc;
- Channel[i].Item[j].Date = DateTime.Parse(feed.Channel[i].Item[j].PubDate);
+ if(feed.Channel[i].Item[j].PubDate != null){
+ Channel[i].Item[j].Date = DateTime.Parse(feed.Channel[i].Item[j].PubDate);
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]