1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-27 04:50:18 +00:00

Forgot a thing (#3240)

This commit is contained in:
Michel Roegl-Brunner 2025-03-18 16:12:54 +01:00 committed by GitHub
parent aa369a13bf
commit a5985e4ce5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ const getVersions = async () => {
const modifiedVersions = versions.map(version => {
let newName = version.name;
newName = newName.toLowerCase().replace(/[^a-z0-9/]/g, '');
return { ...version, name: newName };
return { ...version, name: newName, date: new Date(version.date) };
});
return modifiedVersions;