Fixed: (PassThePopcorn) Use UTC for publish dates

pull/1884/head
Bogdan 8 months ago
parent 3ff144421d
commit 2100e96570

@ -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; }

@ -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,

Loading…
Cancel
Save