Problem with daylight saving time and file modification time
Posted on 2009-05-11
One of the biggest flaws in Microsoft Windows is the fact that the modification time of files changes
when the daylight saving time becomes effective.
This happens ONLY for NTFS file systems, NOT for FAT-oriented systems.
Some of my JAVA applications check if a file has changed by comparing the modification time to a list
kept in a file.
Other JAVA applications compare the modification time of files from disk files to (e.g.) USB stick files.
As almost all USB sticks are FAT-formatted, I'm in trouble 2ce a year.
What to do?
One solution is to format all USB sticks to NTFS and keep an eye on the date.
Another solution is to keep track of file systems (FAT does not store milliseconds or even odd seconds),
but then still half of the year an offset must be added to the FAT-times.
1) how do I get the daylight saving time offset?
2) is there a better solution to this problem?