WebDav plugin displays wrong file time
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
WebDav plugin displays wrong file time
Hello,
WebDav plugin displays the wrong file time.
For example I changed a file this morning at 11:22 and uploaded it to WebDav server.
Total commander displays that the file change time is 10:22. But others apps display the correct time (11:22). So the problem is on the side of Total Commander WebDav Plugin.
If I download the file, it is saved with the wrong time (10:22).
Is this a known bug and will be corrected in the next release?
Regards
lockpicking
WebDav plugin displays the wrong file time.
For example I changed a file this morning at 11:22 and uploaded it to WebDav server.
Total commander displays that the file change time is 10:22. But others apps display the correct time (11:22). So the problem is on the side of Total Commander WebDav Plugin.
If I download the file, it is saved with the wrong time (10:22).
Is this a known bug and will be corrected in the next release?
Regards
lockpicking
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, it's not a known problem - looks like a timezone problem. In which time zone are you?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That would explain the 1 hour difference to GMT. The server probably sends the time in GMT and TC expects local time, or vice versa.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I will have to analyze this in detail with a debugger, and add conversions if necessary. It would be helpful to get a raw directory list from the server. Do you use TC for Windows? It WebDAV plugin could save a raw directory list easily.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
1. Enable "Detailed log file" in the settings of a conntection (Alt+Enter)
2. Connect to the server
3. Go to a folder with a few files and folders inside
4. In the other panel go to the TEMP folder (you can use cd %temp% on the command line while the other panel is active)
5. There should be file dav*.tmp with * some random characters. This is the raw listing as sent by the server (xml).
The timestamps look like this:
<ns666:Win32LastModifiedTime>Thu, 03 Mar 2011 09:20:11 GMT</ns666:Win32LastModifiedTime>
Just post a few here.
2. Connect to the server
3. Go to a folder with a few files and folders inside
4. In the other panel go to the TEMP folder (you can use cd %temp% on the command line while the other panel is active)
5. There should be file dav*.tmp with * some random characters. This is the raw listing as sent by the server (xml).
The timestamps look like this:
<ns666:Win32LastModifiedTime>Thu, 03 Mar 2011 09:20:11 GMT</ns666:Win32LastModifiedTime>
Just post a few here.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
As I wrote above, you can do this ONLY with Total Commander for Windows. You cannot get the raw listing from TC for Android. But since both will get the same raw listing, it doesn't matter where you get the listing.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I can confirm the problem: The function I use to make the time zone correction uses 0=January, 1= February, 2=March etc. instead of what you would expect (1=January, 2= February, 3=March). Unfortunately this wasn't mentioned in the Android docs...
Please try the following fix:
https://plugins.ghisler.com/aplg/tcandroidwebdav202.apk
Please try the following fix:
https://plugins.ghisler.com/aplg/tcandroidwebdav202.apk
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 8
- Joined: 2012-11-08, 10:46 UTC
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, I will put it in the play store (this will usually take about an hour to go through).
Edit: Please download it again, I have added a try..catch exception handler to catch any exceptions due to invalid file timestamps.
Edit: Please download it again, I have added a try..catch exception handler to catch any exceptions due to invalid file timestamps.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com