Alexander:

Can you help me with this one?

I think I figured out what was wrong. The file timestamps on the local and 
remote severs are in different timezones. For reasons that I ignore, the UNIX 
timestamp are a few hours off.

I can see that in FileSet.cc:
bool  FileInfo::SameAs(const FileInfo *fi,int ignore) const

     if(!(ignore&IGNORE_DATE_IF_OLDER && date<fi->date)
      && labs(date-fi->date)>p)

date and fi->date are not in the same timezone!


Alexander:
I've spent many hours trying to debug this issue. Can you give me some 
pointers that would help me fix it more easily?
Shouldn't the UNIX timestamps be GMT (UT) by default? 
How can I figure out whether it's the local machine or the remote server that 
is at fault?
How can I figure out which timezone the files are set in?
                   
lftp u...@ftp.ocsa-data.net:/test> ll
drwxr-xr-x    2 1030     clients       512 Nov 17 09:35 .
drwx---r-x    5 1030     clients       512 Nov 17 08:28 ..
-rw-r--r--    1 1030     clients         0 Nov 17 08:17 apple
-rw-r--r--    1 1030     clients         0 Nov 17 08:17 banana
-rw-r--r--    1 1030     clients         0 Nov 17 08:17 car
-rw-r--r--    1 1030     clients        15 Nov 17 08:35 dog
-rw-r--r--    1 1030     clients         0 Nov 17 08:17 elephant
lftp u...@ftp.ocsa-data.net:/test> !ls -l
total 4
-rw-r--r-- 1 overshoot adm 0 2011-11-17 16:17 apple
-rw-r--r-- 1 overshoot adm 0 2011-11-17 16:17 banana
-rw-r--r-- 1 overshoot adm 0 2011-11-17 16:17 car
-rw-r--r-- 1 overshoot adm 4 2011-11-17 16:20 dog
-rw-r--r-- 1 overshoot adm 0 2011-11-17 16:17 elephant


Thanks,

Augustin.



-- 
Friends: http://www.reuniting.info/
My projects:
http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ 
http://overshoot.tv/ http://charityware.info/ http://masquilier.org/
http://openteacher.info/ http://minguo.info/ 
http://www.wechange.org/ http://searching911.info/












.
_______________________________________________
lftp-devel mailing list
lftp-devel@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel

Reply via email to