marinofaggiana 4 years ago
parent
commit
fccfff1554

+ 3 - 3
iOSClient/Share/NCShareLinkMenuView.swift

@@ -413,10 +413,10 @@ class NCShareLinkMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
             
             guard let tableShare = self.tableShare else { return }
 
-            dateFormatter.dateFormat = "YYYY-MM-dd"
-            let expirationTime = dateFormatter.string(from: date)
+            dateFormatter.dateFormat = "YYYY-MM-dd HH:mm:ss"
+            let expirationDate = dateFormatter.string(from: date)
             
-            networking?.updateShare(idShare: tableShare.idShare, password: nil, permission: tableShare.permissions, note: nil, expirationDate: expirationTime, hideDownload: tableShare.hideDownload)
+            networking?.updateShare(idShare: tableShare.idShare, password: nil, permission: tableShare.permissions, note: nil, expirationDate: expirationDate, hideDownload: tableShare.hideDownload)
         }
     }
     

+ 3 - 3
iOSClient/Share/NCShareUserMenuView.swift

@@ -345,10 +345,10 @@ class NCShareUserMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
             
             guard let tableShare = self.tableShare else { return }
             
-            dateFormatter.dateFormat = "YYYY-MM-dd"
-            let expirationTime = dateFormatter.string(from: date)
+            dateFormatter.dateFormat = "YYYY-MM-dd HH:mm:ss"
+            let expirationDate = dateFormatter.string(from: date)
             
-            networking?.updateShare(idShare: tableShare.idShare, password: nil, permission: tableShare.permissions, note: nil, expirationDate: expirationTime, hideDownload: tableShare.hideDownload)
+            networking?.updateShare(idShare: tableShare.idShare, password: nil, permission: tableShare.permissions, note: nil, expirationDate: expirationDate, hideDownload: tableShare.hideDownload)
         }
     }