Page 1 of 1

Date/time of files on FTP

Posted: 2024-04-15, 10:01 UTC
by Dmitry77
Total Commander does not correctly show date/time of files on FTP server (on OpenMediaVault v0.5). Because of this, copying Timestamp in Synchronize Directories does not work (nothing happens).
Image: https://i.ibb.co/5k5rXYS/1.png
At the same time in panels date/time are shown correctly - through Change attributes tool everything works fine.
Image: https://i.ibb.co/2cBVycn/2.png
Log (Need a translation?):

Code: Select all

Connect to: (10.04.2024 14:34:34)
hostname=****.no-ip.biz:**02
username=*****
startdir=/FOTO/TEMP
****.no-ip.biz=*.**.***.***
220 ProFTPD 1.3.4a Server ready.
USER *****
331 Необходим пароль для пользователя *****
PASS ***********
230-Welcome user *****@*.**.***.*** to 127.0.1.1 FTP server.
230-The local time is: Wed Apr 10 07:38:42 2024
230 Пользователь ***** подключён
SYST
215 UNIX Type: L8
FEAT
211-Features:
 LANG ru-RU.UTF-8*;ru-RU
 MDTM
 MFMT
 TVFS
 UTF8
 MFF modify;UNIX.group;UNIX.mode;
 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
 SITE MKDIR
 SITE RMDIR
 SITE UTIME
 SITE SYMLINK
 REST STREAM
 SITE COPY
 SIZE
211 Конец
OPTS UTF8 ON
200 UTF-8 активирован
CWD /FOTO/TEMP
250 CWD успешно выполнена
Connect ok!
PWD
257 "/FOTO/TEMP" является текущей директорией
Чтение каталога...
TYPE A
200 Тип установлен в A
PASV
227 Entering Passive Mode (*,**,***,***,128,239).
Connected to PASV port
MLSD
150 Открываю режим ASCII данных для MLSD
Загрузка
Ожидание ответа сервера...
226 Передача завершена

Re: Date/time of files on FTP

Posted: 2024-04-15, 10:05 UTC
by Dalai
That's most likely due to the FTP time offset in the Synchronize directories dialog, as can be seen in the first screenshot.

Re: Date/time of files on FTP

Posted: 2024-04-15, 10:08 UTC
by Dmitry77
The offset has nothing to do with it. It doesn't show the time at all. Note that the time of the files is 01.01.1999. On the panels the time is correct.

Re: Date/time of files on FTP

Posted: 2024-04-15, 11:32 UTC
by Dalai
Would you at least try with a offset of 0? I'm pretty certain it's that large offset value, and since the unit is in hours, it can offset the time by days or even years.

Re: Date/time of files on FTP

Posted: 2024-04-15, 13:29 UTC
by petermad
On your screenshot we cannot see the entire value for the offset - could you please look in the [Timezone] section of your wcx_ftp.ini and tell us what the MLSD value is for that FTP-server - so we can test with the same value. Also look for any hidden characters (space or tab) behind the MLSD value.

Re: Date/time of files on FTP

Posted: 2024-04-16, 03:50 UTC
by Dmitry77
You're right, it was about the MLSD=-99 offset. Thank you all for your help.
I wonder why this parameter appeared. The server is nearby, I did not change anything manually.

Re: Date/time of files on FTP

Posted: 2024-04-16, 09:49 UTC
by petermad
Interesting that the value was -99 - when what we can see on your first screenshot is 4294

Re: Date/time of files on FTP

Posted: 2024-04-16, 10:00 UTC
by Dalai
It could be that TC interprets negative values as 2^32 (4,294,967,296) - which would fit the first four digits.