fix bug with parsing negative time zones in ParseRfc822Date()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-30 23:35:40 +00:00
parent d596490f4b
commit ee635d523a
5 changed files with 25 additions and 4 deletions

View File

@@ -3000,7 +3000,7 @@ const wxChar *wxDateTime::ParseRfc822Date(const wxChar* date)
// the spec was correct, construct the date from the values we found
Set(day, mon, year, hour, min, sec);
MakeFromTimezone(TimeZone((wxDateTime_t)(offset*SEC_PER_MIN)));
MakeFromTimezone(TimeZone::Make(offset*SEC_PER_MIN));
return p;
}