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-"
+ date.getFullYear()
+ date.getMonth()
+ date.getDay()
+ "-"
+ date.getHours()
+ date.getMinutes()
+ date.getSeconds()
+ String(date.getMonth() + 1).padStart(2, '0')
+ "-"
+ String(date.getDate()).padStart(2, '0')
+ "_"
+ String(date.getHours()).padStart(2, '0')
+ "-"
+ String(date.getMinutes()).padStart(2, '0')
+ "-"
+ String(date.getSeconds()).padStart(2, '0')
+ "_"
+ date.getMilliseconds()
+".jpg";
}