According to the SFTP Spec (https://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt), timestamps "are represented as seconds from Jan 1, 1970 in UTC." And indeed, my server returns UTC timestamps.
The FileZilla client correctly converts the timestamps to local time before displaying them, but FreeFileSync does not convert them, and incorrectly thinks the files have been modified (because it's comparing UTC timestamps to the local timestamps of the current computer's files).
FreeFileSync reads SFTP timestamps incorrectly (not according to spec)
- Posts: 9
- Joined: 5 May 2023
- Site Admin
- Posts: 7161
- Joined: 9 Dec 2007
FreeFileSync also considers SFTP times as in UTC.
- Posts: 9
- Joined: 5 May 2023
When hovering the mouse over the file, I see the time in UTC (not converted to my local timezone).
When comparing the SFTP files to my local NTFS files, it compares the local and UTC times as if they were in the same timezone.
That means that even after synchronizing, FreeFileSync always wants to synchronize again.
When comparing the SFTP files to my local NTFS files, it compares the local and UTC times as if they were in the same timezone.
That means that even after synchronizing, FreeFileSync always wants to synchronize again.
- Posts: 2390
- Joined: 22 Aug 2012
https://freefilesync.org/manual.php?topic=daylight-saving-time
This should also work for any (integer) amount of hours time difference between UTC and your local time
This should also work for any (integer) amount of hours time difference between UTC and your local time
- Posts: 9
- Joined: 5 May 2023
Good workaround!
I'd still appreciate a fix.
I'd still appreciate a fix.
- Posts: 3909
- Joined: 11 Jun 2019
That is a fix? It's a native option in the program, meaning it's not a workaround
- Posts: 9
- Joined: 5 May 2023
FFS still implements the spec incorrectly behind the scenes - adding a manual offset on top of a wrong timestamp is a workaround (which also means FFS doesn't work out-of-the-box and requires unnecessary tinkering).
- Posts: 3909
- Joined: 11 Jun 2019
FreeFileSync also considers SFTP times as in UTC. Zenju, 06 May 2023, 07:15
- Posts: 9
- Joined: 5 May 2023
That's false.xCSxXenon, 09 May 2023, 14:01FreeFileSync also considers SFTP times as in UTC. Zenju, 06 May 2023, 07:15
My system: Windows 10 64-bit, FFS version 12.2
- Site Admin
- Posts: 7161
- Joined: 9 Dec 2007
No it's not. Are there any screenshots that demonstrate the problem?
- Posts: 9
- Joined: 5 May 2023
I've just reconstructed the setup to screenshot the problem, but now I cannot reproduce it!
The server was probably the one returning the wrong timestamps last week.
Thank you for your time!
The server was probably the one returning the wrong timestamps last week.
Thank you for your time!