2010-06-18 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.ServiceModel.Web / System.ServiceModel.Syndication / Rss20ItemFormatter.cs
index 3b83b390a827c622747adfb35b51a5c8741f99d6..cd4c1ffccdf0e3bd92ecf58033526bfcd4966010 100644 (file)
@@ -209,9 +209,7 @@ namespace System.ServiceModel.Syndication
                                                        Item.Id = reader.ReadElementContentAsString ();
                                                continue;
                                        case "pubDate":
-                                               // FIXME: somehow DateTimeOffset causes the runtime crash.
-                                               reader.ReadElementContentAsString ();
-                                               // Item.PublishDate = FromRFC822DateString (reader.ReadElementContentAsString ());
+                                               Item.PublishDate = FromRFC822DateString (reader.ReadElementContentAsString ());
                                                continue;
                                        case "source":
                                                Item.SourceFeed = new SyndicationFeed ();
@@ -226,9 +224,7 @@ namespace System.ServiceModel.Syndication
                                                Item.Contributors.Add (p);
                                                continue;
                                        case "updated":
-                                               // FIXME: somehow DateTimeOffset causes the runtime crash.
-                                               reader.ReadElementContentAsString ();
-                                               // Item.LastUpdatedTime = XmlConvert.ToDateTimeOffset (reader.ReadElementContentAsString ());
+                                               Item.LastUpdatedTime = XmlConvert.ToDateTimeOffset (reader.ReadElementContentAsString ());
                                                continue;
                                        case "rights":
                                                Item.Copyright = ReadTextSyndicationContent (reader);