From d3adb7ac40e23e73dd24bd1f875ed0e5170b2019 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 10 May 2016 22:19:51 +0200 Subject: [PATCH] Fixed: HDBits release age incorrect. fixes #1272 --- .../IndexerTests/HDBitsTests/HDBitsFixture.cs | 2 +- src/NzbDrone.Core/Indexers/HDBits/HDBitsParser.cs | 2 +- src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/IndexerTests/HDBitsTests/HDBitsFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/HDBitsTests/HDBitsFixture.cs index d25ecde3c..57511f449 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/HDBitsTests/HDBitsFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/HDBitsTests/HDBitsFixture.cs @@ -48,7 +48,7 @@ namespace NzbDrone.Core.Test.IndexerTests.HDBitsTests first.DownloadProtocol.Should().Be(DownloadProtocol.Torrent); first.DownloadUrl.Should().Be("https://hdbits.org/download.php?id=257142&passkey=fakekey"); first.InfoUrl.Should().Be("https://hdbits.org/details.php?id=257142"); - first.PublishDate.Should().Be(DateTime.Parse("2015-04-04T20:30:46+0000")); + first.PublishDate.Should().Be(DateTime.Parse("2015-04-04T20:30:46+0000").ToUniversalTime()); first.Size.Should().Be(1718009717); first.InfoHash.Should().Be("EABC50AEF9F53CEDED84ADF14144D3368E586F3A"); first.MagnetUrl.Should().BeNullOrEmpty(); diff --git a/src/NzbDrone.Core/Indexers/HDBits/HDBitsParser.cs b/src/NzbDrone.Core/Indexers/HDBits/HDBitsParser.cs index 97696078c..9f3c5fd9a 100644 --- a/src/NzbDrone.Core/Indexers/HDBits/HDBitsParser.cs +++ b/src/NzbDrone.Core/Indexers/HDBits/HDBitsParser.cs @@ -63,7 +63,7 @@ namespace NzbDrone.Core.Indexers.HDBits InfoUrl = GetInfoUrl(id), Seeders = result.Seeders, Peers = result.Leechers + result.Seeders, - PublishDate = result.Added + PublishDate = result.Added.ToUniversalTime() }); } diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs index 58d0b1957..fc98c4d2b 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs @@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.Rarbg torrentInfo.Size = torrent.size; torrentInfo.DownloadUrl = torrent.download; torrentInfo.InfoUrl = torrent.info_page; - torrentInfo.PublishDate = torrent.pubdate; + torrentInfo.PublishDate = torrent.pubdate.ToUniversalTime(); torrentInfo.Seeders = torrent.seeders; torrentInfo.Peers = torrent.leechers + torrent.seeders;