>Hi George,
>
>Last time (29/04/2002 08:41:15) you gave me a great tip by downloading your Winfiles class to determine the creation date and time of a direcory.
>It is very usefull to me.
>
>But I have one problem with it.
>I want to determine the creation date for a direcory on a network drive.
>
>When I use your class to determine it on a workstation that is connected to the network, I get the following datetime : "11/06/2002 10:13:54 AM".
>
>When I use it on another workstation for the same direcory I get : "11/06/2002 11:13:54 AM".
>
>There is a difference of 1 hour.
>I have searched for differences between the two workstations and discovered that one of the 2 workstations has the option
>'Automatically adjust clock for daylight saving changes' turned on.
>
>When I synchonize these settings on both workstations and I use your class again to determine the creation date and time they both give me the same date and time.
>
>I have 2 questions that maybe you can answer.
>
>1) Do you know which (other) options like the one I mentioned above result in a different datetime using your class ?
>2) Do you know any solution / workaroud for this problem.
>
>With regards,
>Jacques Herweijer
Actually, the date/time stamp is stored in UTC time. This is why you see the difference between the stamps on the two different workstations. On the one, the date/time was set correctly, on the other it wasn't. You might want to look at MSKB#
Q194576. It shows, how to retrieve the time zone information about the local computer from VFP.
You might also might want to think about making the comparison based on UTC time rather than local time. My Windows Time programming in the download section may be of help there.
George
Ubi caritas et amor, deus ibi est