From 7cafa89468ac0da4ce18a1fc413e2a662aaf6d7e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 3 Aug 2000 12:38:16 +0000 Subject: [PATCH] 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 --- src/common/datetime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index c0afcdaab2..7197351178 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -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; }