]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
process one event at once in wxEvtHandler::ProcessPendingEvents() to prevent crashes...
[wxWidgets.git] / include / wx / datetime.h
index 5028137aa276c32af0fa388cd08be6b9f70ba72f..4d78cf7ffc9ea4763b08f95f5990eb016fae7528 100644 (file)
@@ -418,7 +418,16 @@ public:
     {
     public:
         TimeZone(TZ tz);
     {
     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; }
 
 
         long GetOffset() const { return m_offset; }