]> git.saurik.com Git - wxWidgets.git/commitdiff
use short date format in wxLOCALE_DATE_TIME_FMT handler for MSW for compatibility...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Mar 2009 17:26:25 +0000 (17:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Mar 2009 17:26:25 +0000 (17:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index b17ab7f2dbf6f707dc06c219a95fa343ce2bf12c..5b9c02b7f41634da1d44145239d57fc4b05973b1 100644 (file)
@@ -2849,8 +2849,12 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
         case wxLOCALE_DATE_TIME_FMT:
             // there doesn't seem to be any specific setting for this, so just
             // combine date and time ones
+            //
+            // we use the short date because this is what "%c" uses by default
+            // ("%#c" uses long date but we have no way to specify the
+            // alternate representation here)
             {
-                const wxString datefmt = GetInfo(wxLOCALE_LONG_DATE_FMT);
+                const wxString datefmt = GetInfo(wxLOCALE_SHORT_DATE_FMT);
                 if ( datefmt.empty() )
                     break;