Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in Java FTP by (240 points)
Hi,

I wrote a program that can connect to a FTP Site, login and grab some data. The program reads from a list of requests to determine what site to go to. These sites can be all over the world.

I save the last modified time of the last file I got from each site so the next time I go in, I only grab data newer then the last time I went in.

The problem I am running into is the lastmodified time for files from the current day have a year value of last year instead of the current year. (so for April 27, the last modified time is April 27, 2005)

I am in the EDT time zone and these sites I have problems with are in Europe so the time is always going to be ahead of my system. I am on a Linux system and the systems I connect to can be anything (Linux, Unix, Windows)

I noticed several other topics that talk about the same issue but none recently.

I was wondering if there was any work around.

Thanks in advance, :cry:
Jerry

3 Answers

0 votes
by (162k points)
No simple workaround - easiest thing would be to change the UnixFileParser (if you are using that one) so that only future dates minus 24 hrs that are still in the future are set to the previous year. We'll look at doing that fix - try hacking it yourself to give it a go. The line to change is pretty obvious.
0 votes
by (240 points)
Bruce,

If I am not setting one can I assume the software can detect that it is a unix server and use the UnixParser code?

Since I can connect to many different servers, I am not really sure I want to set a particular parser (even though most of the servers I am connecting to look to be UNIX)

Thanks,
Jerry
0 votes
by (162k points)
Yes, that's a reasonable assumption.

Bruce,

If I am not setting one can I assume the software can detect that it is a unix server and use the UnixParser code?

Since I can connect to many different servers, I am not really sure I want to set a particular parser (even though most of the servers I am connecting to look to be UNIX)

Thanks,
Jerry

Categories

...