tc.creationdate.D.M.Y h:m:s bug

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

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

tc.creationdate.D.M.Y h:m:s bug

Post by *DrShark »

From forum.wincmd.ru
When file has odd number in seconds in creation time, tc.creationdate.D.M.Y h:m:s make it 'even' (example: displays 22 instead of 23). But the field tc.creationtime.h:m:s shows time correctly.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7 uses the FAT(32) date/time internally. TC 7.5 will use the NTFS time, it has already been changed.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Hoorray! :)

But the question is - how come TC displays an odd seconds number? I thought the FAT32 format only allowed for even numbers.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2Hacker
Hi!
1. While discussing thread on russian forum, one user reffering to a russian translation of MS FAT32 srecification was approving that seconds in CREATION date/time on FAT32 can be odd...
2. Regardless where is a truth, tc.creationdate.D.M.Y h:m:s and tc.creationtime.h:m:s works different!

2ghisler(Author)
TC 7 uses the FAT(32) date/time internally. TC 7.5 will use the NTFS time, it has already been changed.
Sorry, NTFS date/time on FAT32... How?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Creation time is read directly from the file only when needed, by the internal 'tc' plugin. This plugin uses the native date/time of the file system. Creation date is converted to internal format first.
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:

Post by *DrShark »

Christian, sorry, it's still not clear enough for me.
I created 2 columns:
[=tc.creationdate.D.M.Y h:m:s], value: 22.08.2007 22:16:42
[=tc.creationtime.h:m:s], value: 22:16:43

So this is not a bug?
But... Maybe I would agree with you, TC has not column [=tc.creationdate.D.M.Y creationtime.h:m:s], but user still can use [=tc.creationdate.D.M.Y] + [=tc.creationtime.h:m:s]... Please tell your point.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's not a bug, it's a limitation of how TC currently works. The next big release, 7.5, will use the NTFS time internally, so there will be no more such problem.
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:

Post by *DrShark »

Fixed in TC 7.5.
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: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply