diff --git a/nyaa/static/js/main.js b/nyaa/static/js/main.js index 2e0b97a..b9c140b 100644 --- a/nyaa/static/js/main.js +++ b/nyaa/static/js/main.js @@ -81,9 +81,7 @@ document.addEventListener("DOMContentLoaded", function(event) { var timedelta = now_timestamp - torrent_timestamp; target.setAttribute('title', _format_time_difference(timedelta)); - var asd = new Date(torrent_timestamp*1000); - console.log(torrent_timestamp, asd); - target.innerText = _format_date(asd); + target.innerText = _format_date(new Date(torrent_timestamp*1000)); } }; @@ -140,4 +138,4 @@ document.addEventListener("DOMContentLoaded", function() { // bsThemeLink.href = '/static/css/bootstrap.min.css'; // localStorage.setItem('theme', 'light'); // } -// } \ No newline at end of file +// }