fixed logic bug in ParseDate

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-08-03 12:38:16 +00:00
parent ad7560cc1b
commit 7cafa89468

View File

@@ -3082,7 +3082,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
if ( haveDay )
{
// we already have the day, so may only be a month or year
if ( val > 12 )
if ( !haveYear && (val > 12) )
{
isYear = TRUE;
}