Problems when calling SetDateTime of Ftp when using Thailand time

0 votes
asked 4 days ago by lanopk (1,000 points)

Hi.

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

LOGFILE :
(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

Regards
BooKyung

Applies to: Rebex FTP/SSL
commented 4 days ago by Lukas Pokorny (113,730 points)
This looks like a bug in Rebex FTP's handling of Thai time in SetFileDateTime. We'll look into it!
commented 3 days ago by lanopk (1,000 points)
Please check also Iran, Saudi Arabia time.
commented 2 days ago by Lukas Matyska (57,170 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.

Please log in or register to answer this question.

...