>I am having a strange problem with the lastmodified datetime due to Daylight Savings.
>
>I have an application that takes a snapshot of a network folder tree and saves the path, filename, size, last modified datetime of all files under it into a table, then users keep adding files under that folder tree and then the app compares the tree with the snapshot (stored in a table) and finds out all modified files or new files and then zips them up and uploads them to an FTP server.
>
>All this worked fine till the daylight savings kicked in.
>
>e.g. a file in the snapshot has a datetime of 2003/01/01 9:30 am and that same file on the network now shows its datetime as 2003/01/01 8:30 am. This has happend to every file on the network so now the application thinks that every file has been modified (even though really none of them were modified) and creates this huge zip file. Every file has a 3600 second difference which is one hour.
>
>Has any one encountered this problem?
It is an interesting problem. We also have the same here. For example, some replies to a thread have been done before the thread itself. Interesting, isn't it? :) Many companies are applying a shutdown during that hour to avoid such situations. What I would recommend is to use an utility to reset the timestamp of those files. I sometime do that here as well.