Skip to content

Commit

Permalink
Fix screenshot filename in FileInput.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
tovam authored Jun 6, 2024
1 parent 4410b66 commit 46c3a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Forms/FileInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
if (extension === null) return null;
// We could implement some contextual data in the filename (for example the evidence name or the name of an object this evidence is related to etc...)
const date = new Date();
return `${date.getDay()}-${date.getMonth()}-${date.getFullYear()}_${date.getHours()}-${date.getMinutes()}-${date.getSeconds()}_${date.getMilliseconds()}.${extension}`;
return `${date.getDate()}-${date.getMonth() + 1}-${date.getFullYear()}_${date.getHours()}-${date.getMinutes()}-${date.getSeconds()}_${date.getMilliseconds()}.${extension}`;
}
function onPaste(event: ClipboardEvent) {
Expand Down

0 comments on commit 46c3a69

Please sign in to comment.