(nobody)
11/7/2011 12:07:00 PM
"BeeJ" <nospam@spamnot.com> wrote in message
news:j96o5j$juo$1@speranza.aioe.org...
> So MS has screwed up my file system again.
> We switched from Daylight Slavings time to Standard and all the
> 32Gigabytes (yes, 32G) of files on my USB drive are now 1 hour off.
> So how do I tell if a file has changed?
> This is my sneakernet drive. Plays havoc every time.
>
> Well anyway, my questions is this.
> 1) How can my VB6 apps that rely on the date information consistency find
> out if the PC is using Daylight vs Standard?
>
> 2) And, if I wanted to for some perverse logic want to programmatically
> switch it, how?
>
> 3) Is there a way to get the PC files to revert to the previous time
> without screwing with the calendar/clock settings?
Don't use VB's FileDateTime function, which returns the local time, but use
GetFileTime() API function that returns the UTC date if the drive was
formatted using NTFS. Don't convert the date to local time, only when you
need to display it.