FtpClient.GetModificationTime() - 1 hour off

Hi guys,


I just came across something: All files on my FTP server are in fact one hour older than FtpClient.GetModificationTime() returns.

In other words: Assume you had a file called “Test.txt” on the server. And the file is assigned a modification date/time of “11/01/2009 16:19:22”. Then FtpClient.GetModificationTime(“Test.txt”) will return “11/01/2009 15:19:22”. So, FtpClient believes the file is one hour younger than it actually is.

Is this a bug in your component, or do I have to change something about the components setting (or maybe my ftp server)?

Thank you very much for your help!
Ingmar

Hi Ingmar,

Thanks for considering Aspose.

Please try using FtpClient.GetModificationTime(“Test.txt”).ToLocalTime() and test if it shows the exact date/time that is assigned to the file at server.

Hi Saqib,


that’s perfect now. Thank you very much!

Ingmar