Timestamp of files shifts forward 1 hour on download.
The problem I am encountering is that when downloading files from a remote server (this happens with different, independent SFTP sites) the timestamp of the files increases by +1 hour.
This issue only happens when running C# code on our servers using the WINSCP .NET library. Running in debug on local PCs work fine. Using the WINSCP GUI on the servers and on PCs the problem does not occur either.
The PCs are running Windows 7 and the server is Windows 2008R2. I am using version 5.1.5.
The code calls session.GetFiles(). If I explicitly create a TransferOptions object and set PreserveTimestamp = true the timestamp is still increased.
Our servers are based in New York - and I believe the servers we are connecting to are as well.
I have looked through related posts on the forums and elsewhere but could not find any fixes/suggestions. Any ideas at all?
Děkuji,
Sam
This issue only happens when running C# code on our servers using the WINSCP .NET library. Running in debug on local PCs work fine. Using the WINSCP GUI on the servers and on PCs the problem does not occur either.
The PCs are running Windows 7 and the server is Windows 2008R2. I am using version 5.1.5.
The code calls session.GetFiles(). If I explicitly create a TransferOptions object and set PreserveTimestamp = true the timestamp is still increased.
Our servers are based in New York - and I believe the servers we are connecting to are as well.
I have looked through related posts on the forums and elsewhere but could not find any fixes/suggestions. Any ideas at all?
Děkuji,
Sam