ghisler(Author) wrote:Unfortunately you will still get different results when the file is on a FAT32 drive than when it's on an NTFS drive. I guess that different functions need to be used depending on what file system the file is on. But even then there will be differences when the file was copied from one drive type to the other with Explorer or Total Commander.
I did a little test using my suggested algorithm: You are right, there are differences between file systems.
My results (the FAT32-Files have been copied from NTFS):
- - On NTFS the algorithm works fine.
- On FAT32 the algorithm works fine, when the system is in standard time.
- FAT32: When the system is in daylight saving time, the file time of ALL files have a difference of 1 hour.
This makes my suggestion a little bit more complicated, but (I guess) it is possible to solve it. And it would be good when Total Commander displays exact values (another advantage over Windows Explorer).
Using current version of Total Commander, the displayed file times are equal (NTFS and FAT32) when the system is in standard time. In daylight saving time all file times differ by 1 hour. In all cases the time of some files is wrong:
- - NTFS: Those files which were changed in daylight saving time (now we have standard time) are displayed wrong (difference of 1 hour).
- NTFS: In summer the file times of files which where changed in winter will be wrong.
- FAT32: same behaviour like NTFS in standard time