Fix Unix timestamps on client during import

File API gives timestamp in milliseconds, not seconds, so this converts
it on the client-side and sends it the correct time to the server.

Ref T609
pull/172/head
Matt Baer 5 years ago
parent 65e2e5126b
commit 3e97625cca
  1. 2
      templates/user/import.tmpl

@ -48,7 +48,7 @@
const files = e.target.files;
let dateMap = {};
for (let file of files) {
dateMap[file.name] = file.lastModified;
dateMap[file.name] = file.lastModified / 1000;
}
fileDates.value = JSON.stringify(dateMap);
})

Loading…
Cancel
Save