From 829a053e8f544f3f8e04ad3af9e6526de10bec7d Mon Sep 17 00:00:00 2001 From: bsourisse Date: Fri, 30 Dec 2022 14:23:58 +0100 Subject: [PATCH] fix: wrong month in "Last Change" #15 --- helpers/functions/timestampConverter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/functions/timestampConverter.js b/helpers/functions/timestampConverter.js index f59161e..b943860 100644 --- a/helpers/functions/timestampConverter.js +++ b/helpers/functions/timestampConverter.js @@ -2,7 +2,7 @@ export default function timestampConverter(UNIX_timestamp) { const a = new Date(UNIX_timestamp * 1000); const year = a.getFullYear(); - const month = a.getMonth(); + const month = a.getMonth() + 1; const date = a.getDate(); const hour = a.getHours(); const min = (a.getMinutes() < 10 ? '0' : '') + a.getMinutes();