marinofaggiana 4 years ago
parent
commit
6ee125b4f7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      iOSClient/Networking/NCOperationQueue.swift

+ 4 - 0
iOSClient/Networking/NCOperationQueue.swift

@@ -270,6 +270,10 @@ class NCOperationReadFileForMediaQueue: ConcurrentOperation {
                             metadata.uploadDate = file.uploadDate!
                             metadata.uploadDate = file.uploadDate!
                             modify = true
                             modify = true
                         }
                         }
+                        if metadata.date != file.date {
+                            metadata.date = file.date
+                            modify = true
+                        }
                         if modify {
                         if modify {
                             NCManageDatabase.sharedInstance.addMetadata(metadata)
                             NCManageDatabase.sharedInstance.addMetadata(metadata)
                         }
                         }