discard time part of m_date, otherwise comparisons with other dates fail

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-17 23:31:05 +00:00
parent 7d69a5715e
commit 5541976c17

View File

@@ -256,7 +256,10 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
wxLogDebug(_T("DateTime_SetSystemtime() failed"));
}
// we need to keep only the date part, times don't make sense for this
// control (in particular, comparisons with other dates would fail)
m_date = dt;
m_date.ResetTime();
}
wxDateTime wxDatePickerCtrl::GetValue() const