From 8db14fddcda61f557e7f37a29c1afe679a44e0e0 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 3 Jan 2025 12:38:06 +0100 Subject: [PATCH] Update current time format in webpack configuration to ISO string --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 47b3a2d56..be1e7119d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -31,7 +31,7 @@ module.exports = (_env, argv) => { ]; if (process.env.VERSION_FILE_NAME && process.env.VERSION_FILE_VERSION) { - const currentTime = new Date(); // Add current time to the context + const currentTime = new Date().toISOString(); plugins.push( new VersionFile({ template: path.join(__dirname, ".version.json.ejs"), @@ -40,10 +40,10 @@ module.exports = (_env, argv) => { version: process.env.VERSION_FILE_VERSION, // We intentionally do not use any information from package.json but // VersionFile require that we provide it. - packageFile: path.join(__dirname, "package.json"), data: { currentTime // Required - } + }, + packageFile: path.join(__dirname, "package.json") }) ); }