From 17d7ed5a2b2cc08cf6a57b6a71c546b7bd3bc91a Mon Sep 17 00:00:00 2001 From: flightlevel Date: Mon, 9 Apr 2018 19:36:20 +1000 Subject: [PATCH] TorrentLeech: Update DateTime parsing (#2935) --- src/Jackett.Common/Indexers/TorrentLeech.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Indexers/TorrentLeech.cs b/src/Jackett.Common/Indexers/TorrentLeech.cs index 9762371cf..516e563d2 100644 --- a/src/Jackett.Common/Indexers/TorrentLeech.cs +++ b/src/Jackett.Common/Indexers/TorrentLeech.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; @@ -10,9 +9,9 @@ using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using Newtonsoft.Json; namespace Jackett.Common.Indexers { @@ -174,7 +173,7 @@ namespace Jackett.Common.Indexers release.Link = new Uri(SiteLink + "download/" + torrent.fid + "/" + torrent.filename); - release.PublishDate = DateTimeUtil.UnixTimestampToDateTime(ParseUtil.CoerceLong(torrent.addedTimestamp.ToString())); + release.PublishDate = DateTime.ParseExact(torrent.addedTimestamp.ToString(), "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal); release.Size = (long)torrent.size;