Fix FILETIME <-> wxDateTime conversions while DST is in effect in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 18:21:10 +0000 (18:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 18:21:10 +0000 (18:21 +0000)
commit55ab731681a0e89be47defb252d3949620e7fb25
tree692b3b5e5c11fa5392f5b7ec05e66931765ea084
parent416d505ee97d2f8f0a3cc13a4f1d373875af3b02
Fix FILETIME <-> wxDateTime conversions while DST is in effect in wxMSW.

The result was (consistently, so the tests still passed) off by an hour when
the program was ran while DST was in effect. Fix this by avoiding the use of
FileTimeToLocalFileTime() and LocalFileTimeToFileTime() and just directly
converting FILETIME values to wxDateTime. Not only this is more correct but
it's also simpler and more efficient as well.

Also add a unit test for wxFileName::SetTimes() too.

Closes #13098.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
src/common/filename.cpp
tests/filename/filenametest.cpp