mirror of
https://github.com/Jackett/Jackett
synced 2024-12-26 09:48:37 +00:00
YIFI: use date_uploaded_unix
This commit is contained in:
parent
a6390f2bc5
commit
086d8b32e9
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ namespace Jackett.Common.Indexers
|
|||
release.InfoHash = torrent_info.Value<string>("hash");
|
||||
|
||||
// ex: 2015-08-16 21:25:08 +0000
|
||||
var dateStr = torrent_info.Value<string>("date_uploaded");
|
||||
var dateTime = DateTime.ParseExact(dateStr, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
|
||||
var dateStr = torrent_info.Value<long>("date_uploaded_unix");
|
||||
var dateTime = DateTimeUtil.UnixTimestampToDateTime(dateStr);
|
||||
release.PublishDate = DateTime.SpecifyKind(dateTime, DateTimeKind.Utc).ToLocalTime();
|
||||
release.Link = new Uri(torrent_info.Value<string>("url"));
|
||||
release.Seeders = torrent_info.Value<int>("seeds");
|
||||
|
|
Loading…
Reference in a new issue