Date/time of files on FTP

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dmitry77
Junior Member
Junior Member
Posts: 3
Joined: 2024-04-15, 09:38 UTC

Date/time of files on FTP

Post 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 Передача завершена
User avatar
Dalai
Power Member
Power Member
Posts: 9398
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Date/time of files on FTP

Post 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.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Dmitry77
Junior Member
Junior Member
Posts: 3
Joined: 2024-04-15, 09:38 UTC

Re: Date/time of files on FTP

Post 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.
User avatar
Dalai
Power Member
Power Member
Posts: 9398
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Date/time of files on FTP

Post 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.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Date/time of files on FTP

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Dmitry77
Junior Member
Junior Member
Posts: 3
Joined: 2024-04-15, 09:38 UTC

Re: Date/time of files on FTP

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Date/time of files on FTP

Post by *petermad »

Interesting that the value was -99 - when what we can see on your first screenshot is 4294
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9398
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Date/time of files on FTP

Post by *Dalai »

It could be that TC interprets negative values as 2^32 (4,294,967,296) - which would fit the first four digits.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply