Use wxLocale::GetInfo() to get date format in wxDatePickerCtrlGeneric.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 19:42:23 +0000 (19:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 Sep 2010 19:42:23 +0000 (19:42 +0000)
commit4d4c704c3efa76c3066563580fb521fe4cdb1892
treedf51ffbeaf1c21763f4a54c71e51d2322572594c
parent5dea30b3095e97ec18640105e598ff47cc2484ea
Use wxLocale::GetInfo() to get date format in wxDatePickerCtrlGeneric.

Instead of trying (and failing) to manually decode the format used by "%x",
simply use wxLocale::GetInfo(wxLOCALE_SHORT_DATE_FMT) and just change "%y" to
"%Y" if necessary.

The new code is more than 10 times shorter and also gives correct results
unlike the old version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datectlg.cpp