Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

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).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.