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:
@@ -97,6 +97,7 @@ All:
|
|||||||
- Fixed bug with parsing negative time zones in wxDateTime::ParseRfc822Date().
|
- Fixed bug with parsing negative time zones in wxDateTime::ParseRfc822Date().
|
||||||
- Initialize current line in wxTextBuffer ctor (Suzuki Masahiro).
|
- Initialize current line in wxTextBuffer ctor (Suzuki Masahiro).
|
||||||
- Improved performance of XML parsing (Francesco Montorsi).
|
- Improved performance of XML parsing (Francesco Montorsi).
|
||||||
|
- Fix wxDateTime::ParseRfc822Date() to handle missing seconds (Joe Nader).
|
||||||
|
|
||||||
All (GUI):
|
All (GUI):
|
||||||
|
|
||||||
|
@@ -2879,8 +2879,9 @@ const wxChar *wxDateTime::ParseRfc822Date(const wxChar* date)
|
|||||||
min = (wxDateTime_t)(min + *p++ - _T('0'));
|
min = (wxDateTime_t)(min + *p++ - _T('0'));
|
||||||
|
|
||||||
wxDateTime_t sec = 0;
|
wxDateTime_t sec = 0;
|
||||||
if ( *p++ == _T(':') )
|
if ( *p == _T(':') )
|
||||||
{
|
{
|
||||||
|
p++;
|
||||||
if ( !wxIsdigit(*p) )
|
if ( !wxIsdigit(*p) )
|
||||||
{
|
{
|
||||||
return (wxChar *)NULL;
|
return (wxChar *)NULL;
|
||||||
|
Reference in New Issue
Block a user