fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2847,8 +2847,9 @@ wxDateTime::ParseRfc822Date(const wxString& date, wxString::const_iterator *end)
|
||||
min = (wxDateTime_t)(min + *p++ - _T('0'));
|
||||
|
||||
wxDateTime_t sec = 0;
|
||||
if ( *p++ == _T(':') )
|
||||
if ( *p == _T(':') )
|
||||
{
|
||||
p++;
|
||||
if ( !wxIsdigit(*p) )
|
||||
{
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user