How to get the timezone of a FTP server

ftptimezone

With lftp, when I do ls I get the listing of the files on the FTP server, with their date. However, the timezone is not displayed.

On my local machine, I can do ls -l --time-style=full-iso to see the timezone, but this command doesn't work with lftp.

Generally speaking, does the FTP protocol allow for server timezone discovery?

When I do a file listing (ls), how can I see which timezone the date is supposed to be?

Best Answer

http://ohse.de/uwe/ftpcopy/faq.html#timestamp

The FTP protocol, misdesigned as it is, doesn't include time zone information. This means client programs have to guess what the time zone of the server is. At least my programs aren't good in guessing, so they don't even try. ftpcopy simply assumes UTC (GMT, greenwhich mean time).

Related Question