summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htdocs/public/archive/index.ejs3
1 files changed, 2 insertions, 1 deletions
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 = "<span style='color:gold;'>Never released</span> · " + 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();
}