|
[[ Old comment, sent by email on Sun, 03 Sep 2006 01:29:31 -0400 ]] I may not have made it clear, the only machine that corrects itself is Bill – [[ Old comment, sent by email on Sun, 03 Sep 2006 01:22:07 -0400 ]] Thanks for the quick reply, Rory. See the attached, which contains a small test source and some results Let me know if you need more info, I'll try my best to get what you need. Regards, Bill – [demime 1.01d removed an attachment of type application/x-zip-compressed which had a name of timestamp-issue.zip] [[ Old comment, sent by email on Sun, 03 Sep 2006 16:11:57 -0400 ]] Some more info... Sphera VDS Linux mentioned previously, ftpd is version That did not have a problem on the Sun machine, but it does have a – Isn't this issue related to the issue <a href="https://issues.apache.org/jira/browse/NET-159">
The only reason I can see that the timestamp will be out of sync for 15 minutes and then ok is if the FTP server sends a different timestamp for files that are older than 15 minutes. This will result in the above behaviour.
I have implemented a workaround for this problem - by calling FTPClient::setDateRollbackPermitted(false), the rollback by 1year should not occur for these situations. Any issues, feel free to reopen. Hi
I still see this timestamp-display-incorrect issue even when using commons-net-2.0.jar. I've read articles about issue FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX); Hi James
Could you provide some examples of the files in question (i.e. would you be able to provide the raw output from an FTP listing)? IIRC, Commons NET has to use the local system time to determine what to do with file listings that have no year information.
So it would also be useful to know whether the client and ftp server times are in synch. or not - and which is ahead - and also the timezones on the two systems. Hi Rory and Sebb, thanks for the reply!
To Rory:
If not using following code segments, I got display year 2008; if used, go correct year 2009. FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX); To Sebb: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Would you be able to provide some raw listings of files that exhibit this behaviour? I think this is related to a previous issue regarding date handling and old/new date formats.