lavv17/lftp — Issue #14: mirror --only-newer doesn't work because of wrong timestamp
Author: dreaming-augustin
Created: 2012-01-08 07:12:03+00:00
State: open

As reported several times on the mailing list and here http://linux.overshoot.tv/ticket/211 ,
the mirror option doesn't work because of a wrong offset between the local timestamp and the remote timestamp.

The timestamp of the local file are correct (they report the proper timstamp GMT). However, lftp misrepresents the timestamps of the remote files.

The remote server is set at GMT + 1. However, since the connection to the server is via FTPES, the server properly displays the dates/times as UT (GMT) just like the protocol requires. The problem is that, for some reasons, lftp still interprets those times as being GMT+1. Thus, the local files *always* appear to be newer than the remote files, rendering the mirror options --only-newer and --reverse useless: the whole file directory is always uploaded to the remote server as if every single file had been updated.

If required, I can set up an account on the remote server in question to help you reproduce this behaviour.