浏览代码

Explaining FTimeDifference

Source commit: c2f482faedac3a6eb8d1be2d4657cad2fd08942c
Martin Prikryl 9 年之前
父节点
当前提交
dd1db4dcce
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      source/core/FtpFileSystem.cpp

+ 3 - 0
source/core/FtpFileSystem.cpp

@@ -2458,6 +2458,9 @@ void __fastcall TFTPFileSystem::AutoDetectTimeDifference(TRemoteFileList * FileL
         TDateTime UtcModification = UtcFile->Modification;
         delete UtcFile;
 
+        // Time difference between timestamp retrieved using MDTM (UTC converted to local timezone)
+        // and using LIST (no conversion, expecting the server uses the same timezone as the client).
+        // Note that FormatTimeZone reverses the value.
         FTimeDifference = static_cast<__int64>(SecsPerDay * (UtcModification - File->Modification));
 
         UnicodeString LogMessage;