]> git.saurik.com Git - wxWidgets.git/commitdiff
using WX_TIMEZONE set by configure instead of timezone
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 1999 19:40:46 +0000 (19:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 1999 19:40:46 +0000 (19:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index d93cb2d17943995739ade0c2d2ac2c8aec97937e..bf7092c026f7e08c13d6ef828cef48422f2321c3 100644 (file)
 
 #include "wx/datetime.h"
 
+#ifndef WX_TIMEZONE
+    #define WX_TIMEZONE timezone
+#endif
+
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
@@ -151,7 +155,7 @@ static int GetTimeZone()
         s_timezoneSet = TRUE;
     }
 
-    return (int)timezone;
+    return (int)WX_TIMEZONE;
 }
 
 // return the integral part of the JDN for the midnight of the given date (to