Page 1 of 1

date & time

Posted: 2020-05-10 06:42
by gfs1212
does anyone know how to keep date and time in ftp files

Re: date & time

Posted: 2020-05-10 12:52
by boco
FTP itself does not have any support for transferring timestamps along with the file data. Timestamps have to be re-set to its original value after the transfer has finished.

For downloads, that's usually easy and requires no further FTP extension support, the timestamps are set by the local file system upon request of the FTP client. In FileZilla, you just activate the "Keep timestamps of transferred files" option in the "transfer" menu.
For upload timestamp setting, the FTP server needs to support the MFMT command. FileZilla will automatically do that if the option mentioned above is set. Without MFMT support, setting timestamps for uploaded files is not possible.