check the week day for consistency in ParseFormat() (replaces patch 788052)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-13 22:39:31 +00:00
parent 1b47bebc98
commit 88a036cef3

View File

@@ -3185,6 +3185,14 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
Set(tm);
// finally check that the week day is consistent -- if we had it
if ( haveWDay && GetWeekDay() != wday )
{
wxLogDebug(_T("inconsistsnet week day in wxDateTime::ParseFormat()"));
return NULL;
}
return input;
}