Fixed: Womble's publish date will be treated as UTC instead of local

This commit is contained in:
Mark McDowall 2014-07-28 07:50:28 -07:00
parent 0200e3fa59
commit 7fc3b971f6
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using System.Xml.Linq;
using System;
using System.Xml.Linq;
namespace NzbDrone.Core.Indexers.Wombles
{
@ -13,5 +14,12 @@ namespace NzbDrone.Core.Indexers.Wombles
{
return 0;
}
protected override DateTime GetPublishDate(XElement item)
{
var dateString = item.TryGetValue("pubDate") + " +0000";
return XElementExtensions.ParseDate(dateString);
}
}
}

View File

@ -57,7 +57,7 @@ namespace NzbDrone.Core.Indexers
public static DateTime PublishDate(this XElement item)
{
string dateString = item.TryGetValue("pubDate");
var dateString = item.TryGetValue("pubDate");
return ParseDate(dateString);
}