Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (340 points)
Hi,

Depending on time zone, the code bellow on UnixFileParser.cs may cause some strange issues:

if (lastModified > DateTime.Now)
{
lastModified = lastModified.AddYears(-1);
}

I changed the if in my local copy of the lib to:

if (lastModified > DateTime.Now.AddDays(2))

... avoiding time zone issues. I suggest something like this to be in the original source or some way to dinamicaly configure this on the class.

Herbert

2 Answers

0 votes
by (162k points)
This is a good idea - thanks. We'll implement it.
0 votes
by (340 points)
Thanks for the credits. ;-)

Categories

...