From 086d8b32e95bc06daee03523a6a34076d826b69a Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 14 May 2018 02:11:12 +0200 Subject: [PATCH] YIFI: use date_uploaded_unix --- src/Jackett.Common/Indexers/yify.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/yify.cs b/src/Jackett.Common/Indexers/yify.cs index 4a89e7f1c..1fa4ebd5f 100644 --- a/src/Jackett.Common/Indexers/yify.cs +++ b/src/Jackett.Common/Indexers/yify.cs @@ -141,8 +141,8 @@ namespace Jackett.Common.Indexers release.InfoHash = torrent_info.Value("hash"); // ex: 2015-08-16 21:25:08 +0000 - var dateStr = torrent_info.Value("date_uploaded"); - var dateTime = DateTime.ParseExact(dateStr, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture); + var dateStr = torrent_info.Value("date_uploaded_unix"); + var dateTime = DateTimeUtil.UnixTimestampToDateTime(dateStr); release.PublishDate = DateTime.SpecifyKind(dateTime, DateTimeKind.Utc).ToLocalTime(); release.Link = new Uri(torrent_info.Value("url")); release.Seeders = torrent_info.Value("seeds");