From 295318e6a606d7b66333465944fbd495b8690a0b Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Sat, 2 Mar 2019 14:30:12 -0500 Subject: [PATCH] commento.js: use full timestamp in timeago title --- frontend/js/commento.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index adee05f..dad2d0c 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -690,6 +690,7 @@ } else { name = create("div"); } + var date = new Date(comment.creationDate); card.id = ID_CARD + comment.commentHex; body.id = ID_BODY + comment.commentHex; @@ -728,11 +729,12 @@ } else { sticky.title = "Sticky"; } + timeago.title = date.toString(); card.style["borderLeft"] = "2px solid " + color; name.innerText = commenter.name; text.innerHTML = comment.html; - timeago.innerHTML = timeDifference((new Date()).getTime(), Date.parse(comment.creationDate)); + timeago.innerHTML = timeDifference((new Date()).getTime(), date); score.innerText = scorify(comment.score); if (commenter.photo === "undefined") {