file changed Date (write date) showing the wrong Date
Moderators: Hacker, petermad, Stefan2, white
file changed Date (write date) showing the wrong Date
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
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
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I guess that the access date was somehow updated when you accessed the file...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hello,ghisler(Author) wrote:I guess that the access date was somehow updated when you accessed the file...
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.
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Hello,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.
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?
I can't find a download link for downloading Lazarus 0.9.31 ... so i cannot test my little programmumbra 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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com