From 2100e96570b737fd6d9fa86362550c6ca73efb58 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 2 Oct 2023 04:35:57 +0300 Subject: [PATCH] Fixed: (PassThePopcorn) Use UTC for publish dates --- .../Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs | 5 ++--- .../Definitions/PassThePopcorn/PassThePopcornParser.cs | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs index 7d329ee18..5b24f0c24 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn { @@ -33,7 +32,7 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn public string Resolution { get; set; } public bool Scene { get; set; } public string Size { get; set; } - public DateTime UploadTime { get; set; } + public string UploadTime { get; set; } public string RemasterTitle { get; set; } public string Snatched { get; set; } public string Seeders { get; set; } diff --git a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs index 993b59911..39e32d372 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Net; using NLog; using NzbDrone.Common.Extensions; @@ -83,7 +84,7 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn Grabs = int.Parse(torrent.Snatched), Seeders = int.Parse(torrent.Seeders), Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders), - PublishDate = torrent.UploadTime.ToUniversalTime(), + PublishDate = DateTime.Parse(torrent.UploadTime + " +0000", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal), ImdbId = result.ImdbId.IsNotNullOrWhiteSpace() ? int.Parse(result.ImdbId) : 0, Scene = torrent.Scene, IndexerFlags = flags,