Update Save.js

This commit is contained in:
brausjonas
2023-07-07 20:14:44 +02:00
parent d4b9e8eee3
commit 62a16e25cf
+1 -1
View File
@@ -3,7 +3,7 @@ export class Save {
let localID = localStorage.getItem("id")
this.id = 0
let now = new Date()
this.name = now.getFullYear() + "." + (now.getMonth() + 1)+ "." + now.getDate() + "-" + now.getHours() + "h" + now.getMinutes() + "-" + now.getSeconds() + "s"
this.name = now.getFullYear() + "." + (now.getMonth() + 1)+ "." + now.getDate() + "-" + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds()
if(localID !== null) {
this.id = parseInt(localID) + 1
localStorage.setItem("id", this.id)