From fe176a444737be17c7c5ea8ee91de0ae8033ea3a Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Mon, 24 Jun 2024 16:03:32 +0500 Subject: [PATCH] Fix version number for Beta The version should be a string with 1 to 4 numbers separated with dots. Each number should have up to 9 digits and leading zeros are not allowed. Letters are no longer allowed. See https://mzl.la/3h3mCRu (MDN Docs) for more information. --- vue.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index abe617d..abcd8fa 100644 --- a/vue.config.js +++ b/vue.config.js @@ -13,14 +13,12 @@ const manifest_transformer = (manifest) => { manifest.icons["128"] = "assets/icons/128/icon-beta.png"; let currentDate = new Date(); - let year = currentDate.getFullYear(); + let year = String(currentDate.getFullYear()).slice(-2); let month = String(currentDate.getMonth() + 1).padStart(2, "0"); let day = String(currentDate.getDate()).padStart(2, "0"); let hours = String(currentDate.getHours()).padStart(2, "0"); - let minutes = String(currentDate.getMinutes()).padStart(2, "0"); - let seconds = String(currentDate.getSeconds()).padStart(2, "0"); - let formattedDate = `${year}${month}${day}.${hours}${minutes}${seconds}`; + let formattedDate = `${year}${month}${day}${hours}`; manifest.version = `${manifest.version}.${formattedDate}`; }