Browse Source

Bug fix: The stat command on FTP server may return wrong times, if the ls command was used before

Source commit: 8d77796c383395570ca34e63001b300bf1b02e45
Martin Prikryl 9 years ago
parent
commit
e71b3bed9f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      source/core/FtpFileSystem.cpp

+ 0 - 2
source/core/FtpFileSystem.cpp

@@ -2681,7 +2681,6 @@ void __fastcall TFTPFileSystem::DoReadFile(const UnicodeString & AFileName,
     if (File != NULL)
     if (File != NULL)
     {
     {
       AFile = File->Duplicate();
       AFile = File->Duplicate();
-      ApplyTimeDifference(AFile);
     }
     }
 
 
     FLastDataSent = Now();
     FLastDataSent = Now();
@@ -4497,7 +4496,6 @@ void __fastcall TFTPFileSystem::RemoteFileTimeToDateTimeAndPrecision(const TRemo
       ModificationFmt = Source.HasSeconds ? mfFull : mfMDHM;
       ModificationFmt = Source.HasSeconds ? mfFull : mfMDHM;
 
 
       // With IIS, the Utc should be false only for MDTM
       // With IIS, the Utc should be false only for MDTM
-      // Though we should probably remove the !Utc check as in DST, the MDTM gets shifted too.
       if (FWindowsServer && !Source.Utc)
       if (FWindowsServer && !Source.Utc)
       {
       {
         DateTime -= DSTDifferenceForTime(DateTime);
         DateTime -= DSTDifferenceForTime(DateTime);