1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-18 23:07:45 +02:00

All: Fixes #3591: Fixed sync fetching issue (#3599)

This commit is contained in:
alexchee
2020-08-07 19:30:11 -04:00
committed by GitHub
parent f99f3f8a6d
commit 8c7a24282c
2 changed files with 3 additions and 1 deletions

View File

@ -145,10 +145,11 @@ class FileApiDriverAmazonS3 {
metadataToStat_(md, path) {
const relativePath = basename(path);
const lastModifiedDate = md['LastModified'] ? new Date(md['LastModified']) : new Date();
const output = {
path: relativePath,
updated_time: md['LastModified'] ? new Date(md['LastModified']) : new Date(),
updated_time: lastModifiedDate.getTime(),
isDeleted: !!md['DeleteMarker'],
isDir: false,
};