On Thu, Dec 01, 2005 at 06:39:13AM -0500, Jeffrey Litvin wrote:
> Could this problem be solved by setting ftp:timezone then?

Probably.

Attached is a simpler patch to address the problem.

--
   Alexander.
Index: misc.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/misc.cc,v
retrieving revision 1.77
diff -u -p -r1.77 misc.cc
--- misc.cc     25 Oct 2005 12:16:43 -0000      1.77
+++ misc.cc     1 Dec 2005 14:19:38 -0000
@@ -441,7 +441,7 @@ int guess_year(int month,int day,int hou
    const struct tm &now=SMTask::now;
    int year=now.tm_year+1900;
    if(month     *32+        day
-    > now.tm_mon*32+now.tm_mday+1)
+    > now.tm_mon*32+now.tm_mday+6)
       year--;
    return year;
 }

Reply via email to