X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92f89387a8ab67e331d42e3d345d7e1ac786c022..19c4d91638c2546630c4427e39c02f5380a8bb87:/include/wx/datetime.h?ds=sidebyside diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 5028137aa2..4d78cf7ffc 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -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; }