1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,7 @@ const api = null;
// const items = response.items;
// expect(items.length).toBe(3);
// expect(items[0].path).toBe('1');
// expect(items[0].updated_time).toMatch(/^\d+$/); // make sure it's using epoch timestamp
// }));
// it('should default to only files on root directory', asyncTest(async () => {

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,
};