mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentscsv: bunt datestamp from int to long. resolves #6550
This commit is contained in:
@@ -137,7 +137,7 @@ namespace Jackett.Common.Indexers {
|
|||||||
release.InfoHash = torrent.Value<JToken> ("infohash").ToString ();
|
release.InfoHash = torrent.Value<JToken> ("infohash").ToString ();
|
||||||
|
|
||||||
// convert unix timestamp to human readable date
|
// convert unix timestamp to human readable date
|
||||||
double createdunix = torrent.Value<int> ("created_unix");
|
double createdunix = torrent.Value<long> ("created_unix");
|
||||||
System.DateTime dateTime = new System.DateTime (1970, 1, 1, 0, 0, 0, 0);
|
System.DateTime dateTime = new System.DateTime (1970, 1, 1, 0, 0, 0, 0);
|
||||||
dateTime = dateTime.AddSeconds (createdunix);
|
dateTime = dateTime.AddSeconds (createdunix);
|
||||||
release.PublishDate = dateTime;
|
release.PublishDate = dateTime;
|
||||||
|
Reference in New Issue
Block a user