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