Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jul : idFTP DirectoryListing ModifiedDate error
| Subject: | idFTP DirectoryListing ModifiedDate error |
| Posted by: | "Shane" (holmesshanea at yahoo dot com) |
| Date: | Sun, 20 Jul 2008 14:07:34 |
i am not getting the right date on my files when i look at the ModifiedDate
see code below
idFTP1.Connect;
idFTP1.ChangeDIr('/public_ftp/data_files');
idFTP1.List(nil, '*.dat');
for I:= 0 to idFTP1.DirectoryListing.Count-1 do
begin
AModDate := idFTP1.DirectoryListing[I].ModifiedDate;
if AModDate > gLastDownLoadDate then
begin
lbxFiles.Add(idFTP1.DirectoryListing[I].FileName);
end;
end;
The year is showing as 2007 - when the files are stamped with 2008
what is going on?
i added IdAllFTPListParsers to my uses clause