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:
@@ -421,8 +421,21 @@ public:
|
||||
{
|
||||
public:
|
||||
TimeZone(TZ tz);
|
||||
|
||||
// don't use this ctor, it doesn't work for negative offsets (but can't
|
||||
// be removed or changed to avoid breaking ABI in 2.8)
|
||||
TimeZone(wxDateTime_t offset = 0) { m_offset = offset; }
|
||||
|
||||
#if wxABI_VERSION >= 20808
|
||||
// create time zone object with the given offset
|
||||
static TimeZone Make(long offset)
|
||||
{
|
||||
TimeZone tz;
|
||||
tz.m_offset = offset;
|
||||
return tz;
|
||||
}
|
||||
#endif // wxABI 2.8.8+
|
||||
|
||||
long GetOffset() const { return m_offset; }
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user