mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
Fixed: Womble's publish date will be treated as UTC instead of local
This commit is contained in:
parent
0200e3fa59
commit
7fc3b971f6
2 changed files with 10 additions and 2 deletions
|
@ -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 a new issue