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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user