if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
SetValue(dt);
+ else
+ SetValue(wxDateTime::Today());
return true;
}
wxLogDebug(_T("DateTime_SetSystemtime() failed"));
}
- wxFromSystemTime(&m_date, st);
+ m_date = dt;
}
wxDateTime wxDatePickerCtrl::GetValue() const