blam r557 - trunk/lib
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r557 - trunk/lib
- Date: Wed, 23 Apr 2008 10:29:08 +0100 (BST)
Author: cmartin
Date: Wed Apr 23 09:29:08 2008
New Revision: 557
URL: http://svn.gnome.org/viewvc/blam?rev=557&view=rev
Log:
RSSFeed: Parse pubDate according to the language of the channel.
Modified:
trunk/lib/RSSFeed.cs
Modified: trunk/lib/RSSFeed.cs
==============================================================================
--- trunk/lib/RSSFeed.cs (original)
+++ trunk/lib/RSSFeed.cs Wed Apr 23 09:29:08 2008
@@ -93,7 +93,8 @@
Channel[i].Item[j].Description = feed.Channel[i].Item[j].Description;
Channel[i].Item[j].Content = feed.Channel[i].Item[j].ContEnc;
if(feed.Channel[i].Item[j].PubDate != null){
- Channel[i].Item[j].Date = DateTime.Parse(feed.Channel[i].Item[j].PubDate);
+ Channel[i].Item[j].Date = DateTime.Parse(feed.Channel[i].Item[j].PubDate,
+ System.Globalization.CultureInfo.CreateSpecificCulture(feed.Channel[i].Language));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]