Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (161k points)
A user writes:

Hello,

I'm working with your FTP API and encountered an error.

FTPClient.DirDetails() seems to be locale sensitive. When I call this function with my regional settings set to nl-BE it fails. Returns an exception and complains about a Invalid DateTime conversion.

When I set my locale to en-US everything works fine. There should be a member in which we can set the datetime format or pass a cultureInfo object to.

I'm reporting this because the documentation asks to report bugs in this function. If I'm missing out on some functionality I would love to hear it.


There's a ParsingCulture property on FTPClient that allows you to set the culture for parsing. There's not really any simple way of working out what locale the server is in (make sure you are using 1.1.5 BTW)

1 Answer

0 votes
by
Thanks,

I was still using the 1.1.4 which doesn't has the ParsingCulture property.

After upgrading and adding 1 extra line of code it works perfectly.

--W

Categories

...