Fix localFileModifiedTime to not use fraction seconds (#91)

* Fix localFileModifiedTime when uploading a new file to compare using no fraction seconds
This commit is contained in:
abraunegg 2018-08-02 08:22:26 +10:00 committed by GitHub
parent 686da27e34
commit 6b670df686
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1189,6 +1189,7 @@ final class SyncEngine
// Is the local file newer than the uploaded file?
SysTime localFileModifiedTime = timeLastModified(path).toUTC();
SysTime remoteFileModifiedTime = SysTime.fromISOExtString(fileDetailsFromOneDrive["fileSystemInfo"]["lastModifiedDateTime"].str);
localFileModifiedTime.fracSecs = Duration.zero;
if (localFileModifiedTime > remoteFileModifiedTime){
// local file is newer