Fixed: (Filelist) Assume UTC+2 for API Dates

pull/1279/head
Qstick 2 years ago
parent cc841fe3d1
commit e87b45b47e

@ -50,7 +50,7 @@ namespace NzbDrone.Core.Test.IndexerTests.FileListTests
torrentInfo.InfoUrl.Should().Be("https://filelist.io/details.php?id=665873");
torrentInfo.CommentUrl.Should().BeNullOrEmpty();
torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
torrentInfo.PublishDate.Should().Be(DateTime.Parse("2020-01-25 22:20:19"));
torrentInfo.PublishDate.Should().Be(DateTime.Parse("2020-01-25 14:20:19"));
torrentInfo.Size.Should().Be(8300512414);
torrentInfo.InfoHash.Should().Be(null);
torrentInfo.MagnetUrl.Should().Be(null);

@ -22,7 +22,7 @@ namespace NzbDrone.Core.Indexers.FileList
[JsonProperty(PropertyName = "doubleup")]
public bool DoubleUp { get; set; }
[JsonProperty(PropertyName = "upload_date")]
public DateTime UploadDate { get; set; }
public string UploadDate { get; set; }
public string Category { get; set; }
}
}

@ -62,7 +62,7 @@ namespace NzbDrone.Core.Indexers.FileList
InfoUrl = GetInfoUrl(id),
Seeders = result.Seeders,
Peers = result.Leechers + result.Seeders,
PublishDate = result.UploadDate,
PublishDate = DateTime.Parse(result.UploadDate + " +0200"),
ImdbId = imdbId,
IndexerFlags = flags,
Files = (int)result.Files,

Loading…
Cancel
Save