1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

nicer timestamp for result zipfile

This commit is contained in:
irismarie 2021-02-16 18:58:59 +01:00
parent 48ee4825d5
commit 8d7635553d

View file

@ -177,7 +177,7 @@ class Scenario extends React.Component {
filesToDownload.forEach(file => {
zip.file(file.name, file.data);
});
let zipname = "result_" + this.state.resultNodl + "_" + Date.now();
let zipname = "result_" + this.state.resultNodl + "_" + (new Date()).toISOString();
zip.generateAsync({type: "blob"}).then(function(content) {
saveAs(content, zipname);
});