bug in month day parsing - now check that it's > 1 too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-03 18:27:18 +00:00
parent a6a1ef9e7b
commit 20590f751f

View File

@@ -2539,7 +2539,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
break; break;
case _T('d'): // day of a month (01-31) case _T('d'): // day of a month (01-31)
if ( !GetNumericToken(input, &num) || (num > 31) ) if ( !GetNumericToken(input, &num) || (num > 31) || (num < 1) )
{ {
// no match // no match
return (wxChar *)NULL; return (wxChar *)NULL;