PDA

View Full Version : Fixed FAT vs NTFS timestamps with DST change


adamkerz
10-06-2009, 05:03 PM
Hi,

Here in Australia daylight saving time has just kicked in again, and a whole bunch of files that live on my flash drive (FAT32) are suddenly considered different. I've always assumed that it was due to the 2 second timestamp resolution and DST in combination but this time I decided to fix the problem.

(Unfortunately, I don't have a C compiler setup, so it was just easier to hack the exe its self and change the 10000000 and -10000000 values to 20000000 and -20000000.)

The correct change in the source is to change these two values on line 1448:


dateMatch = l < 10000000 && l > -10000000;

to:

dateMatch = l < 20000000 && l > -20000000;


Justin, if you could incorporate this change into the source it would be nice.

Also, I'd also be interested in that unicode/UTF-8 version that you mentioned a little while ago.

Cheers,

Adam

adamkerz
10-06-2009, 05:16 PM
Oh, I just realised that the Unicode discussion was only a month ago. Being an Aussie, I read the date 09-04-2009 as 9th April - so I didn't mean to sound impatient waiting for you to upload the new one.

What a great piece of software - does exactly what's needed in a simple easy to use manner. 10/10!

Cheers,

Adam