X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c58c7ec012727bccf3c7ad5ee93200617b9a19..3aa8e4ea6db0478d3bc862f59f100408bdc8732f:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index c5f9f365df..5028137aa2 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -37,11 +37,8 @@ class WXDLLIMPEXP_FWD_BASE wxDateSpan; // set this to the corresponding value in seconds 1/1/1970 has on your // systems c-runtime -#if defined(__WXMAC__) && !defined(__DARWIN__) && __MSL__ < 0x6000 - #define WX_TIME_BASE_OFFSET ( 2082844800L + 126144000L ) -#else - #define WX_TIME_BASE_OFFSET 0 -#endif +#define WX_TIME_BASE_OFFSET 0 + /* * TODO * @@ -1085,8 +1082,8 @@ public: // another one to get the current time broken down static struct tm *GetTmNow() { - time_t t = GetTimeNow(); - return localtime(&t); + static struct tm l_CurrentTime; + return GetTmNow(&l_CurrentTime); } // get current time using thread-safe function