1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 02:09:24 +00:00

YIFI: cleanup

This commit is contained in:
kaso17 2018-05-14 02:12:09 +02:00
parent 086d8b32e9
commit 842d9e79ce

View file

@ -140,7 +140,6 @@ namespace Jackett.Common.Indexers
release.MagnetUri = new Uri(magnet_uri); release.MagnetUri = new Uri(magnet_uri);
release.InfoHash = torrent_info.Value<string>("hash"); release.InfoHash = torrent_info.Value<string>("hash");
// ex: 2015-08-16 21:25:08 +0000
var dateStr = torrent_info.Value<long>("date_uploaded_unix"); var dateStr = torrent_info.Value<long>("date_uploaded_unix");
var dateTime = DateTimeUtil.UnixTimestampToDateTime(dateStr); var dateTime = DateTimeUtil.UnixTimestampToDateTime(dateStr);
release.PublishDate = DateTime.SpecifyKind(dateTime, DateTimeKind.Utc).ToLocalTime(); release.PublishDate = DateTime.SpecifyKind(dateTime, DateTimeKind.Utc).ToLocalTime();