sergi/jsftp

wrong time returned if FTP server uses a different time zone

Opened this issue · 1 comments

This looks like a common problem for most FTP libraries. However decent softwares like FileZilla client handles this issue pretty nice.
When FileZilla client gets a file list from FTP server, it will

  1. Check if MLSD supported, use it instead of LS if possible.
  2. If use LS, do a MDTM command on one file to calculate the timezone difference.
  3. Store the timezone difference and use it for the whole connection.

Will you consider adding this "enhancement"? Thanks.

I could really use this too. Or at the minimum be able to pass the timezone of the FTP server when known.