Synchronization file time incorrect

Advertisement

magicguru
Joined:
Posts:
5
Location:
UK

Synchronization file time incorrect

if you synchronize files through the GUI, the time of the file is correct on the destination, however if you synchronize files through a script the time of the file is incorrect when it downloaded from the SFTP – it is UTC – preservetime and criteria have been set to try to alleviate this but the issue still persists
synchronize local -preservetime -criteria=<none>

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,328
Location:
Prague, Czechia

Re: Synchronization file time incorrect

Please post session log files both from GUI and script showing synchronization of the same file with different results.

Btw, it's -criteria=none, not -criteria=<none>.

Reply with quote

magicguru
Joined:
Posts:
5
Location:
UK

Synchronization file time incorrect

Script
synchronize local -delete -preservetime -criteria=none C:\ABC_TestFolder\ /TO_RSW/TestFolder
Last edited by magicguru on 2025-08-28 16:22; edited 1 time in total

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,328
Location:
Prague, Czechia

Re: Synchronization file time incorrect

You have explicitly asked for the different behaviour in your script using:
open ... -rawsettings ConsiderDST=0
Just remove the -rawsettings ConsiderDST=0.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
42,328
Location:
Prague, Czechia

Re: Synchronization file time incorrect

Then you must have the "Adjust remote timestamp with DST" configured in the GUI at the time you have generated the code.
But now your GUI session has the default "Adjust remote timestamp to local conventions" selected.

If you have a different experience, please post some screenshots documenting that.

Reply with quote

Guest

Re: Synchronization file time incorrect

magicguru wrote:

if you synchronize files through the GUI, the time of the file is correct on the destination, however if you synchronize files through a script the time of the file is incorrect when it downloaded from the SFTP – it is UTC – preservetime and criteria have been set to try to alleviate this but the issue still persists
synchronize local -preservetime -criteria=<none>

if you synchronize files through the GUI, the time of the file is correct on the destination, however if you synchronize files through a script the time of the file is incorrect when it downloaded from the SFTP – it is UTC – preservetime and criteria have been set to try to alleviate this but the issue still persists

Hi,

this behavior usually happens because the script mode (command-line or .NET assembly) treats file timestamps strictly in UTC, while the GUI automatically applies your local timezone offset. That’s why you see correct times in the GUI but not in automation.

A few things to check/try:

1. **Session option**

Reply with quote

Advertisement

You can post new topics in this forum