From 6418e3ae72e6257f4b7f10a7fc00062b27a5ee1b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Mar 2011 10:37:35 +0000 Subject: [PATCH] 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 --- samples/widgets/datepick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } -- 2.50.0