2

Resolved

DateTime comparison

description

In the BackupFile method you compare the datetimes this way
 
if (props.LastModifiedTime < fileInfo.LastWriteTime)
 
in order to know if the file on cloud needs to be updated.
Since the time on the cloud servers is UTC-based, the comparison should use done using UTC time (otherwise files are always updated, or not updated even if necessary).
You should then compare datetimes this way for example:
 
if (props.LastModifiedTime < fileInfo.LastWriteTime.ToUniversalTime()) {

comments

bitNine wrote Apr 8, 2014 at 3:07 PM

As a new developer on this project, I have verified this bug and updated it in the code. It should be available in the next release. Next release will also make use of file attributes (archive bit) to determine whether or not file should be updated on server, regardless of timestamp.

wrote Apr 8, 2014 at 4:36 PM

wrote Apr 8, 2014 at 7:22 PM