X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..e1efca652844273c3e8d32c7e5f442b87e455ca7:/samples/widgets/datepick.cpp?ds=sidebyside diff --git a/samples/widgets/datepick.cpp b/samples/widgets/datepick.cpp index c0646f0b89..1ce550538b 100644 --- a/samples/widgets/datepick.cpp +++ b/samples/widgets/datepick.cpp @@ -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())); }