diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index d93cb2d179..bf7092c026 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -75,6 +75,10 @@ #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