Re: Problem with MDTM on Titan 4

Giganews Newsgroups
Subject: Re: Problem with MDTM on Titan 4
Posted by:  Michael J. Leaver (spam@mjleaver.com)
Date: Tue, 17 May 2005

Michael J. Leaver wrote:
> Seems something is broken either with latest version of Indy (Rev 1.125
> of IdFTP.pas), or with the latest version of Titan FTP. Everything seems
> to be working fine with Titan V3, but with Titan V4 there is a problem
> with the files modification date & time.
>
> As you can see below the same MDTM command is being sent, but the date &
> time of the file on the FTP server is different. I can manually fix this
> if I send this command (which is syntax 3) instead of using SetModTime
> in TIdFTP.pas:
>
> SendCmd('MDTM '+ FTPDateTimeToMDTMD(UseDateTime - OffSetFromUTC +
> FFTPClient.TZInfo.GMTOffset,False,False)+ ' '+AFileName,[253]);
>
> It seems like something has changed in Titan V4 which is breaking
> SetModTime again.
>
> Test data
> ---------
>
> FTP server timezone: GMT+5:30
> FTP client timezone: GMT+8
> Local file time (in GMT+8 timezone): May 17, 2005, 12:19:23 PM
>
> Titan 4.02 Build 248
> --------------------
>
> 220 Titan FTP Server (Secure) 4.02.248 Ready.<EOL>
> 211-Extensions Supported<EOL> COMB<EOL> MLST<EOL> MLSD<EOL> SIZE<EOL>
> MDTM<EOL> XCRC<EOL> REST STREAM<EOL> AUTH SSL<EOL> AUTH TLS<EOL>
> CCC<EOL> PBSZ<EOL> PROT<EOL> SSCN<EOL> CPSV<EOL> EPRT<EOL> EPSV<EOL>211
> End<EOL>
>
> MDTM 20050517041923 abc.txt<EOL>
> 200 Command OK.<EOL>
>
> Retrieval of file info from FTP server using MLSD:
>
> Item [type=file;size=3;modify=20050517104923;create=20050517104944;
> abc.txt]
>
> File time on FTP server after transfer (in GMT+5:30 timezone): May 17,
> 2005, 9:49:23 AM
>
> Titan 3.30 Build 186
> --------------------
>
> 220 Titan FTP Server (Secure) 3.30.186 Ready.<EOL>
> 211-Extensions Supported<EOL> COMB<EOL> MLST<EOL> MLSD<EOL> SIZE<EOL>
> MDTM<EOL> XCRC<EOL> REST STREAM<EOL> AUTH SSL<EOL>
>
> AUTH TLS<EOL> PBSZ<EOL> PROT<EOL> SSCN<EOL> CPSV<EOL> EPRT<EOL>
> EPSV<EOL> CLNT<EOL>211 End<EOL>
>
> MDTM 20050517041923 abc.txt<EOL>
> 200 Command OK.<EOL>
>
> Retrieval of file info from FTP server using MLSD:
>
> Item [type=file;size=3;modify=20050517041923;create=20050517110201;
> abc.txt]
>
> File time on FTP server after transfer (in GMT+5:30 timezone):May 17,
> 2005, 3:19:23 AM

As a follow-up to this I've found that SetModeTime does work as long as
the TZInfo.GMTOffset is set (manually) as appropriate. With Titan V3 you
didn't need to do this, but with Titan V4 you do. HTH

Replies

None

In response to

Problem with MDTM on Titan 4 posted by Michael J. Leaver on Tue, 17 May 2005