Handle %e in ParseFormat().

This allows us to parse the format returned by wxLocale::GetInfo(wxLOCALE_DATE_TIME_FMT) under Linux.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-22 16:44:06 +00:00
parent 52256b21b9
commit eaed41872c

View File

@@ -1085,6 +1085,7 @@ wxDateTime::ParseFormat(const wxString& date,
break;
case _T('d'): // day of a month (01-31)
case 'e': // day of a month (1-31) (GNU extension)
if ( !GetNumericToken(width, input, end, &num) ||
(num > 31) || (num < 1) )
{