]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/datectrl.cpp
no changes, just de TABified
[wxWidgets.git] / src / msw / datectrl.cpp
index 84fa85f9a151616edafbd6a3292dac29cdc8a25e..68486ca9fdedf8f486b0ebf392839dfea9b0380f 100644 (file)
@@ -156,6 +156,8 @@ wxDatePickerCtrl::Create(wxWindow *parent,
 
     if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
         SetValue(dt);
+    else
+        SetValue(wxDateTime::Today());
 
     return true;
 }
@@ -254,7 +256,7 @@ void wxDatePickerCtrl::SetValue(const wxDateTime& dt)
         wxLogDebug(_T("DateTime_SetSystemtime() failed"));
     }
 
-    wxFromSystemTime(&m_date, st);
+    m_date = dt;
 }
 
 wxDateTime wxDatePickerCtrl::GetValue() const