]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/datectrl.cpp
Fix default value for wxFontPickerCtrl's initial font parameter
[wxWidgets.git] / src / msw / datectrl.cpp
index c9129f87565be99bb5679012dc028edd206d74ec..84fa85f9a151616edafbd6a3292dac29cdc8a25e 100644 (file)
@@ -254,7 +254,7 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
         wxLogDebug(_T("DateTime_SetSystemtime() failed"));
     }
 
-    m_date = dt;
+    wxFromSystemTime(&m_date, st);
 }
 
 wxDateTime wxDatePickerCtrl::GetValue() const