diff options
author | Minteck <minteck@phoenixnet.tech> | 2021-11-03 21:08:20 +0100 |
---|---|---|
committer | Minteck <minteck@phoenixnet.tech> | 2021-11-03 21:08:20 +0100 |
commit | fcef52b5a22d0140cdf24385d79856925506c8d3 (patch) | |
tree | f96aedfdeff4ef016e3338c390ed01f2856970d5 /htdocs/public/archive | |
parent | 00a54bf39e35148ee43a63dea143db00dea5ea10 (diff) | |
download | rainbow-fcef52b5a22d0140cdf24385d79856925506c8d3.tar.gz rainbow-fcef52b5a22d0140cdf24385d79856925506c8d3.tar.bz2 rainbow-fcef52b5a22d0140cdf24385d79856925506c8d3.zip |
Update
Diffstat (limited to 'htdocs/public/archive')
-rw-r--r-- | htdocs/public/archive/index.ejs | 3 |
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(); } |