From b865e5b7e3dfd86552e84b4b9f3daf4bd8eaa3da Mon Sep 17 00:00:00 2001 From: zhetic <> Date: Fri, 30 Apr 2021 01:24:04 +0300 Subject: [PATCH] handle time --- js/chapter_list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/chapter_list.js b/js/chapter_list.js index 6374c49..ba89338 100644 --- a/js/chapter_list.js +++ b/js/chapter_list.js @@ -39,7 +39,7 @@ function load_info(remote, id) { text.appendChild(Object.assign( document.createElement("p"), - {textContent: "Last Updated: "} + {textContent: "Last Updated: " + manga["last_updated"]} )); var tags = document.createElement("p"); @@ -92,7 +92,7 @@ function load_chapters(remote, id) { //date row.appendChild(Object.assign( document.createElement("td"), - {textContent: new Date(chapter["date_added"]).toLocaleString()} + {textContent: new Date(chapter["date_added"] * 1000).toLocaleString()} )); }); });