WebDav plugin displays wrong file time

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: WebDav plugin displays wrong file time

Post by *DrShark »

On a phone which doesn't have a camera I prefer to use the WebDAV plugin instead of Wifi Transfer to download files shared on other Android devices. Some of such devices don't show correct time of their files, so I suggest implement per-connection time shift correction option, suggested for desktop WebDAV plugin, also in its mobile version.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WebDav plugin displays wrong file time

Post by *ghisler(Author) »

WebDAV servers usually send the timestamp in UTC (GMT). For example, my Wifi transfer plugin sends something like this:
Fri, 11 Dec 2020 15:02:40 GMT

If you get wrong timestamps, then the time zone is wrong either on the sending or on the receiving device.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: WebDav plugin displays wrong file time

Post by *DrShark »

ghisler(Author) wrote: 2021-03-16, 20:31 UTC WebDAV servers usually send the timestamp in UTC (GMT). For example, my Wifi transfer plugin sends something like this:
Fri, 11 Dec 2020 15:02:40 GMT

If you get wrong timestamps, then the time zone is wrong either on the sending or on the receiving device.
I'm not sure about this. For example, I share file on a Meizu M2 device with Android 5.1, there TC4A shows following:

Code: Select all

photo1.jpg 1M 25.09.20 18:30:15
photo2.jpg 2M 01.11.20 23:08:24

On a reciever device (for example on Android 4.3.1, or on a PC), in the WebDAV plugin, TC shows following files data:

Code: Select all

photo1.jpg 1M 25.09.20 19:30:15
photo2.jpg 2M 02.11.20 00:08:24

So there is +1 hour shift on a receiver device, which for some files means +1 day shift.

Maybe instead of per-connection setting for Time Shift correction in the WebDav plugin, it could be solved by TC and TC4A setting to define custom time shifts in a format "path pattern - time shift", so it would be possible to define something like:

Code: Select all

\\WebDAV\Meizu M2\* -1H
and then for all items in under \\WebDav\Meizu M2\ TC and TC4A would correct the time by shifting it 1 hour earlier...
Last edited by DrShark on 2021-03-19, 07:39 UTC, edited 1 time in total.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WebDav plugin displays wrong file time

Post by *ghisler(Author) »

Maybe it's because the USA already uses daylight saving time now, but Europe still uses winter time?
Do you use U.S. locale on one of the devices?
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: WebDav plugin displays wrong file time

Post by *DrShark »

I have checked the date/time settings on that Meizu phone, it says:
Language: Ukrainian
Region: USA
Date & Time:
Automatic: disabled
Time zone: GMT +01:00 Central European Standard Time
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WebDav plugin displays wrong file time

Post by *ghisler(Author) »

Region: USA
That could be the problem, it may be thinking it already has daylight saving time as in the USA.
We will see, when Europe gets daylight saving time later this month whether the problem will go away...
Author of Total Commander
https://www.ghisler.com
Post Reply