This project is read-only.


DateTime comparison


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()) {


bitNine wrote Apr 8, 2014 at 4: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 5:36 PM

wrote Apr 8, 2014 at 8:22 PM