From fcef52b5a22d0140cdf24385d79856925506c8d3 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 3 Nov 2021 21:08:20 +0100 Subject: Update --- htdocs/public/archive/index.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'htdocs/public') diff --git a/htdocs/public/archive/index.ejs b/htdocs/public/archive/index.ejs index b8bd4df..3fdda40 100644 --- a/htdocs/public/archive/index.ejs +++ b/htdocs/public/archive/index.ejs @@ -27,9 +27,10 @@ data.date = (json.date.substr(3) + json.date.substr(0, 2)) - 1 + 1; if (json.unreleased) { - date = new Date(json.date.substr(3) + "-" + json.date.substr(0, 2) + "-01"); + let date = new Date(json.date.substr(3) + "-" + json.date.substr(0, 2) + "-01"); data.info = "Never released · " + monthNames[date.getMonth()] + " " + date.getFullYear(); } else { + let date = new Date(json.date.substr(3) + "-" + json.date.substr(0, 2) + "-01"); data.info = "Officially released · " + monthNames[date.getMonth()] + " " + date.getFullYear(); } -- cgit