From: Vadim Zeitlin Date: Fri, 3 Mar 2000 18:27:18 +0000 (+0000) Subject: bug in month day parsing - now check that it's > 1 too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/20590f751f983effa8cc9c6f3e32005c5a0a9030 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 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 5cceff453a..11c5c78824 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -2539,7 +2539,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date, break; 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 return (wxChar *)NULL;