diff --git a/Build/build-cidr.js b/Build/build-cidr.js index 50de17fbd..1a3d44a9b 100644 --- a/Build/build-cidr.js +++ b/Build/build-cidr.js @@ -22,7 +22,7 @@ function makeCidrList(cidr) { return `############################ # Mainland China IPv4 CIDR # Data from misaka.io (misakaio @ GitHub) -# Last Updated: ${date.getFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()} ${date.getUTCHours()}:${date.getUTCMinutes()}:${date.getUTCSeconds()} +# Last Updated: ${date.toISOString()} # Routes: ${cidr.length} ############################\n` + cidr.map(i => `IP-CIDR,${i}`).join('\n') + '\n########### END ############\n'; }; diff --git a/Build/build-index.html.js b/Build/build-index.html.js index 56fbeb76b..a97a2e2db 100644 --- a/Build/build-index.html.js +++ b/Build/build-index.html.js @@ -20,6 +20,8 @@ const rootPath = path.resolve(__dirname, '../'); * @returns {string} */ function template(urlList) { + const date = new Date(); + return ` @@ -47,6 +49,7 @@ function template(urlList) {

Sukka Surge Ruleset Server

Made by Sukka | Source @ GitHub | Licensed under AGPL-3.0

+

Last Updated: ${date.toISOString()}