NetTalk Central

Author Topic: DirListingQ.Time = 0 when FTP file time is higher than system time  (Read 6514 times)

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Hello.

There is propably some bug (I think) in getting the time of FTP file.

Example (using FTP Template from NetTalk's examples):
1. I changed (for testing) the time of file (for example in TotalCommander) to higher than my system time: 20:42:56 - modified time (see example in PNG - in polish)
2. I put this file on FTP
3. I get this file using FTP Template example app where I have message(DirListingQ.Time) at for example 13:47:21 - the time when I clicked Get file in app
4. Result: time of file is equale to 0 (DirListingQ.Time = 0)

Why is that?

Regards,
matthew

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: DirListingQ.Time = 0 when FTP file time is higher than system time
« Reply #1 on: November 07, 2014, 06:21:47 AM »
Hi Matthew,

can you let me access the server you are working against?

Bear in mind that the time on the server is the time the file was created on the server. Not the time it was created on your local machine. And vice versa.

Cheers
Bruce