Fixed: Womble's publish date will be treated as UTC instead of local
This commit is contained in:
parent
0200e3fa59
commit
7fc3b971f6
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue