Opened 9 years ago
Time translation from SFTP server
|Reported by:||siddolo||Owned by:|
|Keywords:||time, utc, atime, mtime, sftp||Cc:|
|Component version:||Operating system type:||Windows|
|Operating system version:||Windows 7|
When a file was retrieved from an SFTP server, the timestamp was not translated from UTC into localtime.
As SFTP specs says, the time need to be send in UTC.
uint32 atime present only if flag SSH_FILEXFER_ACMODTIME uint32 mtime present only if flag SSH_FILEXFER_ACMODTIME The `atime' and `mtime' contain the access and modification times of the files, respectively. They are represented as seconds from Jan 1, 1970 in UTC.
FileZilla client and OpenSSH server respect the RFC and send this in UTC, but i think that after atime/mtime was transferred to the client, it should be translated (by FileZilla) in a localtime.