0 votes
by (1.9k points)


When I call SetFileDateTime from Rebex FTP, I pass the DateTime.
When I set the date/time display on my window to Thai time, it works weird.
After calling SetFileDateTime, when the information of the file is obtained, the server returns it as December 31, 1969.
FTP Server : Synology FTP Server.
But, SFTP SetFileDateTime works fine.

Rebex Version : 2020 R1.1
File Time :
(English Time) : year 2020, month : 9, day : 14, hour 03, min : 18, sec : 29
(Thai Time) : year 2563, month : 9, day : 14, hour : 12, min : 18, sec : 29

(1) SetFileDateTime Request
Command: MFMT 25630914031829 mylog.5

(2) Get File Info
Command: MLST /home/Test2/mylog.5
Response: modify=19691231235959;type=file;unique=FD00UB5AB;size=1175;UNIX.mode=0777;UNIX.owner=xxx;UNIX.group=users; /home/Test2/mylog.5


Applies to: Rebex FTP/SSL
by (144k points)
This looks like a bug in Rebex FTP's handling of Thai time in SetFileDateTime. We'll look into it!
by (1.9k points)
Please check also Iran, Saudi Arabia time.
by (70.2k points)
Thank you for pointing to this. Those times also suffer with the same bug.
I already fixed it, which also fixed the Iran and Saudi Arabia and possibly all other uncommon times.

1 Answer

0 votes
by (144k points)

This has been fixed in Rebex FTP/SSL 2020 R4. Thanks for bringing this issue to our attention!