fix bug with parsing negative time zones in ParseRfc822Date()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -418,7 +418,16 @@ public:
|
||||
{
|
||||
public:
|
||||
TimeZone(TZ tz);
|
||||
TimeZone(wxDateTime_t offset = 0) { m_offset = offset; }
|
||||
|
||||
// create time zone object with the given offset
|
||||
TimeZone(long offset = 0) { m_offset = offset; }
|
||||
|
||||
static TimeZone Make(long offset)
|
||||
{
|
||||
TimeZone tz;
|
||||
tz.m_offset = offset;
|
||||
return tz;
|
||||
}
|
||||
|
||||
long GetOffset() const { return m_offset; }
|
||||
|
||||
|
Reference in New Issue
Block a user