Ignore time component of SYSTEMTIME in wxCalendarCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 May 2010 21:59:17 +0000 (21:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 May 2010 21:59:17 +0000 (21:59 +0000)
commit10acc3ef6a2c65181b869ca4c1bdfbecf51ee4cd
tree4d680271ab53ffefbf32e5b1d3a8f31aab5b3407
parent79309be9dbc6f27dcf4bb9caca5135310c49dc92
Ignore time component of SYSTEMTIME in wxCalendarCtrl.

Native month calendar functions doesn't always return correct values in the
time part of SYSTEMTIME so ignore it and use just the date component.

To simplify doing it, add helper (MSW-specific) SetFromMSWSysDate() and
GetAsMSWSysDate() functions which convert between wxDateTime and SYSTEMTIME
but take only date component into account.

This commit partially replaces changes of r63560 and closes #11276.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/datetime.h
src/common/datetime.cpp
src/msw/calctrl.cpp