From 4c0400448e40a2449db065e17822880887ba2c99 Mon Sep 17 00:00:00 2001 From: Deadooshka Date: Wed, 23 Nov 2016 16:54:06 +0300 Subject: [PATCH] Update aria2.js Torrent Created At --- js/aria2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/aria2.js b/js/aria2.js index 7b58363..5565c17 100644 --- a/js/aria2.js +++ b/js/aria2.js @@ -752,6 +752,9 @@ if (typeof ARIA2=="undefined"||!ARIA2) var ARIA2=(function(){ file.title = file.path.replace(new RegExp("^"+result.dir.replace(/\\/g, "[\\/]")+"/?"), ""); file.selected = file.selected == "true" ? true : false; }; + if (result.bittorrent) { + result.bittorrent.creationDate = (new Date(result.bittorrent.creationDate * 1000)).toLocaleString(); + } $("#ib-status").empty().append(YAAW.tpl.ib_status(result)); $("#ib-files .file-list").empty().append(YAAW.tpl.files_tree(result.files)); if ($("#task-gid-"+gid).attr("data-status") == "active")