Page 2 of 2

Re: WebDav plugin displays wrong file time

Posted: 2021-03-16, 13:31 UTC
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.

Re: WebDav plugin displays wrong file time

Posted: 2021-03-16, 20:31 UTC
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.

Re: WebDav plugin displays wrong file time

Posted: 2021-03-16, 21:45 UTC
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...

Re: WebDav plugin displays wrong file time

Posted: 2021-03-17, 10:17 UTC
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?

Re: WebDav plugin displays wrong file time

Posted: 2021-03-17, 11:16 UTC
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

Re: WebDav plugin displays wrong file time

Posted: 2021-03-18, 17:07 UTC
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...