Discuss the FTP protocol, secure FTP, FTP over SSH and FTP over SSL.
no avatar
User

apkermit

Posts

8

Joined

Wed Nov 25, 2009 12:53 pm

Getting file time of remote file

by apkermit » Sat Nov 10, 2012 4:44 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting file time of remote file

by support2 » Mon Nov 12, 2012 9:10 pm

no avatar
User

apkermit

Posts

8

Joined

Wed Nov 25, 2009 12:53 pm

Re: Getting file time of remote file

by apkermit » Wed Nov 14, 2012 12:48 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting file time of remote file

by support2 » Wed Nov 14, 2012 2:08 pm

The server actually supplies the timestamp in UTC, and we convert it to local time. So we don't actually get the local time on the server sent to us when a file is downloaded.

What you can do is work out the time difference and set the TimeDifference property. You should be able to do this by doing using GetFileInfos() which does return the server time, and comparing a file's timestamp to that returned by GetLastWriteTime.
no avatar
User

apkermit

Posts

8

Joined

Wed Nov 25, 2009 12:53 pm

Re: Getting file time of remote file

by apkermit » Thu Nov 15, 2012 2:19 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting file time of remote file

by support2 » Thu Nov 15, 2012 9:14 am

no avatar
User

apkermit

Posts

8

Joined

Wed Nov 25, 2009 12:53 pm

by apkermit » Thu Jan 17, 2013 8:02 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jan 17, 2013 9:42 am

no avatar
User

apkermit

Posts

8

Joined

Wed Nov 25, 2009 12:53 pm

by apkermit » Fri Jan 18, 2013 1:12 am


Who is online

Users browsing this forum: No registered users and 3 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron