Fix localFileModifiedTime to not use fraction seconds

* Fix localFileModifiedTime when uploading a new file to compare using no fraction seconds
This commit is contained in:
abraunegg 2018-08-01 05:52:37 +10:00
parent 2336118d8a
commit 42adcafb05

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