round the time
This commit is contained in:
parent
c5e3147805
commit
8bb095c4aa
@ -544,8 +544,8 @@ export const uploadToRemote = async (
|
||||
let ctime = 0;
|
||||
const s = await vault.adapter.stat(fileOrFolderPath);
|
||||
if (s !== null) {
|
||||
mtime = s.mtime;
|
||||
ctime = s.ctime;
|
||||
mtime = Math.round(s.mtime / 1000.0) * 1000;
|
||||
ctime = Math.round(s.ctime / 1000.0) * 1000;
|
||||
}
|
||||
const mtimeStr = new Date(mtime).toISOString().replace(/\.\d{3}Z$/, "Z");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user