Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local time and System time
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00305457
Message ID:
00305641
Views:
23
>...You're relying on the LocalFileTimeToFileTime() Win32 API function for conversion. This function uses the current daylight/standard time, not the one in effect for the datetime to be converted. This means the current difference between local and UTC times is used, which may be different than the one for the input datetime. In which case, I think it's easier to retrieve the difference using the GetTimeZoneInformation() function and get the same result. :(
>
Vlad,

My bad! You're absolutely right. I made the mistake of assuming that the functions would compensate based on the date/time passed. This, unfortunately is incorrect. As much as I warn about the dangers of making assumptions, I failed to follow my own advice. My apologies to all, especially Alex. I'm working on a fix and will post it shortly.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform