fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-01 14:37:26 +00:00
parent 7cc81fb81e
commit 4bdfaa384b
2 changed files with 3 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ All:
- Fixed bug with parsing negative time zones in wxDateTime::ParseRfc822Date().
- Initialize current line in wxTextBuffer ctor (Suzuki Masahiro).
- Improved performance of XML parsing (Francesco Montorsi).
- Fix wxDateTime::ParseRfc822Date() to handle missing seconds (Joe Nader).
All (GUI):

View File

@@ -2879,8 +2879,9 @@ const wxChar *wxDateTime::ParseRfc822Date(const wxChar* date)
min = (wxDateTime_t)(min + *p++ - _T('0'));
wxDateTime_t sec = 0;
if ( *p++ == _T(':') )
if ( *p == _T(':') )
{
p++;
if ( !wxIsdigit(*p) )
{
return (wxChar *)NULL;