On Fri, Aug 07, 2009 at 02:59:34PM +0100, Andy Krafft - Xtranet Multimedia Ltd 
wrote:
> Removing the --ignore-time switch seems to fix the problem and the file
> is correctly time stamped at 21 July 2009, 00:56:59.

This patch should fix the problem. Please test.

--
   Alexander.
Index: CopyJob.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/CopyJob.h,v
retrieving revision 1.28
diff -u -p -r1.28 CopyJob.h
--- CopyJob.h   29 Apr 2009 13:38:54 -0000      1.28
+++ CopyJob.h   11 Aug 2009 10:03:06 -0000
@@ -76,7 +76,7 @@ public:
    const char *GetETAStrSFromTime(time_t t) { return c->GetETAStrSFromTime(t); 
}
    void SetRange(off_t s,off_t lim) { c->SetRange(s,lim); }
    void SetRangeLimit(off_t lim) { return c->SetRangeLimit(lim); }
-   void SetDate(time_t d) { c->SetDate(d); }
+   void SetDate(const FileTimestamp& d) { c->SetDate(d); }
    void SetSize(off_t s)   { c->SetSize(s); }
    const SMTaskRef<FileCopy>& GetCopy() { return c; }
    const SMTaskRef<FileCopyPeer>& GetPut() { return c->put; }

Reply via email to