From 5819fd95242c15641acde93e7fd61ff9a42b2088 Mon Sep 17 00:00:00 2001 From: Gunjan Rawal Date: Wed, 9 Oct 2019 20:03:35 +0530 Subject: [PATCH] Update comment.js --- include/js/comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/js/comment.js b/include/js/comment.js index c36c5bc..60c6f40 100644 --- a/include/js/comment.js +++ b/include/js/comment.js @@ -31,7 +31,7 @@ function fetchComments() { let data = res.data; let t = new Date(data.fetch); post.fetchTime = Math.ceil(data.fetch / 1000); // php timestamp - $('span.fetch.time').text(`Last fetch: ${t.getHours()}:${ t.getMinutes() < 10 ? '0' + t.getMinutes() : t.getMinutes() }`); + $('span.fetch.time').text(`Last fetch: ${t.getHours() < 10 ? '0' + t.getHours() : t.getHours()}:${ t.getMinutes() < 10 ? '0' + t.getMinutes() : t.getMinutes() }`); parseComments(data); }).catch(function (error) { if (error.response) { @@ -327,4 +327,4 @@ function snackbar(message) { ts('.snackbar').snackbar({ content: message }); -} \ No newline at end of file +}