15.11.04 23:40:02, Martin Stjernholm wrote:
Ok then. Do you already have a patch?
No, because the proposed change has evolved quite a bit during this thread. I think I'll better leave it to an experienced Pike developer to make the final implementation.
Indeed, it seems that Micro$oft is very, very confused by DST. By "incorrect" they probably mean "incorrect in comparison to our already incorrect implementation of FILETIME values in WIN32_FIND_DATA", and not "incorrect" in the absolute sense of the word :)
Even with that quirky interpretation of "incorrect", it doesn't really explain how a reboot should change matters.
After a reboot, GetFileTime will recalculate the cached UTC times according to the current DST status, so they will once again be consistent with the values returned in WIN32_FIND_DATA, and thus by M$ definition "correct".
Axel