Modification du formatage du nom de fichier

This commit is contained in:
Laurie 2024-01-16 16:46:16 +01:00
parent ce73485bc3
commit 7fe522f1c0

View File

@ -12,13 +12,17 @@ function snapshotPath(){
return "/snapshot/snapshot-" return "/snapshot/snapshot-"
+ date.getFullYear() + date.getFullYear()
+ date.getMonth() + "-"
+ date.getDay() + String(date.getMonth() + 1).padStart(2, '0')
+ "-" + "-"
+ date.getHours() + String(date.getDate()).padStart(2, '0')
+ date.getMinutes() + "_"
+ date.getSeconds() + String(date.getHours()).padStart(2, '0')
+ "-" + "-"
+ String(date.getMinutes()).padStart(2, '0')
+ "-"
+ String(date.getSeconds()).padStart(2, '0')
+ "_"
+ date.getMilliseconds() + date.getMilliseconds()
+".jpg"; +".jpg";
} }