MDTM (correction: MFMT) command - can't set proper time
Posted: 2008-03-18 12:55
Hello,
I connect programatically from a computer with a different time zone than the FileZilla server, and try to sync a local folder with a remote FTP folder (it's actually a backup from local to ftp).
Conditions:
Local time: UTF + 1;
FileZilla server local time: UTF + 2;
File asdf.txt resides on local machine and has timestamp 12:00:00
Actions:
I put file asdf.txt (programatically) then I call MDTM command to sync the timestamp on the FTP server.
After calling MDTM command, the uploaded file will have timestamp 14:00:00 (instead of 12:00:00).
Is it possible to know the FTP Server local time, to do a proper sync ? It seems that the FTP server will apply a timestamp different that what I wanted, namely: my timestamp + 2 (the difference from UTF).
Any ideas ?
Thanks.
I connect programatically from a computer with a different time zone than the FileZilla server, and try to sync a local folder with a remote FTP folder (it's actually a backup from local to ftp).
Conditions:
Local time: UTF + 1;
FileZilla server local time: UTF + 2;
File asdf.txt resides on local machine and has timestamp 12:00:00
Actions:
I put file asdf.txt (programatically) then I call MDTM command to sync the timestamp on the FTP server.
After calling MDTM command, the uploaded file will have timestamp 14:00:00 (instead of 12:00:00).
Is it possible to know the FTP Server local time, to do a proper sync ? It seems that the FTP server will apply a timestamp different that what I wanted, namely: my timestamp + 2 (the difference from UTF).
Any ideas ?
Thanks.