file changed Date (write date) showing the wrong Date

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

file changed Date (write date) showing the wrong Date

Post by *lamdacore »

This file shows in windows the following dates:

Image: https://s32.postimg.org/ct9mi2m79/2016_08_05_11_39_34.png
creation date: 27.07.2016
write date: 05.08.2016
access date: 04.08. 2016

But in total commander it shows date write date the same as access date:
Image: https://s31.postimg.org/mqkjtynkr/2016_08_05_12_01_20.png

is this possible to fix in total commander?

I use Total Commander (x64) 9.0ß8 and Windows 7 Professional

The drive, where the file is stored, is a network drive. The OS of this drive is not windows as far as i know.


Here an evidence that I create the custom columns correctly:
Image: https://s32.postimg.org/fvmtoi81h/2016_08_05_12_10_01.png
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I guess that the access date was somehow updated when you accessed the file...
Author of Total Commander
https://www.ghisler.com
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

Post by *lamdacore »

ghisler(Author) wrote:I guess that the access date was somehow updated when you accessed the file...
Hello,

my point is, that total commander is not showing what windows is showing with the write date.

total commander is showing the write date always the same like the access date.

i.e.
access date: 04.08.2016
total commander is showing this access date correctly

write date: 05.08.2016
total commander is showing this write date not correctly it shows the same like the access date (04.08.2016) and that is wrong.

please refere my screenshots in the first post. windows is showing different access date and write dates .. but total commander always showing access date and write date as the same.

and there is no mistake by updating the dates accidentially by accessing them. i can look even today again and the access date for today is 08.08.2016 .. total commander is showing 08.08.2016 also as the write date .. but in real the write date is 05.08.2016
Last edited by lamdacore on 2016-08-08, 07:17 UTC, edited 2 times in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, no idea - I'm using the normal FindFirstFile function to get the 3 file dates. It has worked everywhere so far.
Author of Total Commander
https://www.ghisler.com
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

Post by *lamdacore »

ghisler(Author) wrote:Sorry, no idea - I'm using the normal FindFirstFile function to get the 3 file dates. It has worked everywhere so far.
Hello,

maybe it worked everywhere so far because usually windows is almost always showing the same date on access date and write date, and nobody is careing. But with this shared drive i use, it is different.

I downloaded Lazarus IDE v1.6 .. a delphi IDE
I make a small program where I print out the 3 dates ..first time with the GetFileAttributeEx function and secondly with the FindFirstFile function

both functions are working perfeclty. I got even on my special file all dates showed correctly.

here a screenshot: Image: https://s9.postimg.org/l2gsj3oyn/2016_08_08_15_55_57.png

here is the download link to the source code of the test project:
http://filestore.to/?d=QIV0UZ25FY

do you have maybe a little typo in your source code what is accidantially obtaining the ftLastAccessTime TFileTime value on a wrong holding variable or something?
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2lamdacore
Just a small note to your test - it seems that TC 9 x64 is still being compiled by Lazarus 0.9.31, not 1.6.
Windows 10 Pro x64, Windows 11 Pro x64
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

Post by *lamdacore »

umbra wrote:2lamdacore
Just a small note to your test - it seems that TC 9 x64 is still being compiled by Lazarus 0.9.31, not 1.6.
I can't find a download link for downloading Lazarus 0.9.31 ... so i cannot test my little programm

Is it not a good thing to go with the time and make total commander compile with the current lazarus version?

Maybe this problem with the write date will solve by it's own, then.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Lazarus is irrelevant here, since I'm calling a Windows API function.

I get the same 3 file dates in TC 32-bit and 64-bit here, and they are also always the same as the ones shown in Alt+Enter properties. I'm also on Windows 7 x64.
Author of Total Commander
https://www.ghisler.com
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

Post by *lamdacore »

ok, I made a litte more research and tests with a fresh install of total commander an a fresh clean wincmd.ini

I figure it out, that the Entry: "AccessTime=1" in the wincdm.ini was the cause. I set it to "0" and now the date time is showing correctly

thank you
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Another weird option... :D
We should collect a list of such options that may broke something if they are left enable and forgotten... Mine one was CopyLinks recently.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - that's a very old option, added by request of a user long before there were custom columns to show these dates. I'm surprised that you used that. Maybe I should remove the option, or its documentation...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think you can safely remove it because it will only add a mess.
lamdacore
Junior Member
Junior Member
Posts: 11
Joined: 2007-02-22, 14:55 UTC

Post by *lamdacore »

yes, no problem to remove that. I was even not aware of using that. It was somehow in my config file. This config file is a backup and exists long time, so every time I get a new pc or something i install total commander with this config file to restore all my settings.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Interestingly, I had a warning in the German help to use custom columns instead. I will keep the option and add the warning to the English help too.
Author of Total Commander
https://www.ghisler.com
Post Reply