Use correct month in the date picker page of the widgets sample.
Months returned by wxDateTime::GetMonth() start from 0 while people mostly expect to have 1-based months in the UI. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9445e542a0
commit
6418e3ae72
@ -186,7 +186,7 @@ void DatePickerWidgetsPage::Reset()
|
||||
|
||||
m_datePicker->SetValue(today);
|
||||
m_day->SetValue(wxString::Format(wxT("%d"), today.GetDay()));
|
||||
m_month->SetValue(wxString::Format(wxT("%d"), today.GetMonth()));
|
||||
m_month->SetValue(wxString::Format(wxT("%d"), today.GetMonth() + 1));
|
||||
m_year->SetValue(wxString::Format(wxT("%d"), today.GetYear()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user