changing file date/time fails

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

changing file date/time fails

Post by *MarcinW »

8.01 32-bit (not tested on 64-bit):

I found a bug when changing a file time on FAT32 (but not NTFS) partitions. When I try set time to xx:yy:zz, I get xx:yy:zz+1, when zz is uneven. For example:

10:20:01 -> 10:20:02
10:20:59 -> 10:21:00

It's probably some kind of TDateTime rounding problem.

Regards
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Hi, if I'm not mistaken, FAT32 has only a 2-seconds time resolution for a time of modification.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

umbra wrote:Hi, if I'm not mistaken, FAT32 has only a 2-seconds time resolution for a time of modification.
You are absolutely right, umbra.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 10.52 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

You are absolutely right, umbra.
Thanks. It's nice to be, at least occasionally, right. :D
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

umbra, karlchen, you are right. "Create time" is encoded using 24 bits in FATxx entry, but "Last modified time" uses only 16 bits, with seconds divided by 2.

So I think this thread could be moved to general Total Commander forum. Thanks.
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
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.
Post Reply