Modification du formatage du nom de fichier
This commit is contained in:
parent
ce73485bc3
commit
7fe522f1c0
18
index.js
18
index.js
@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user