X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62ae2780a8049aa777ccb75e14fa395024c9d80c..9a55c2ee2a4ccc587cd14caeec0f48088d5984e0:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index eb28a5c0b0..7ff53bacf5 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -13,7 +13,7 @@ // so long as the above copyright and this permission statement // are retained in all copies. // -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// /* @@ -82,6 +82,8 @@ #include "wx/datetime.h" #include "wx/timer.h" // for wxGetLocalTimeMillis() +const long wxDateTime::TIME_T_FACTOR = 1000l; + // ---------------------------------------------------------------------------- // conditional compilation // ---------------------------------------------------------------------------- @@ -97,6 +99,10 @@ #undef HAVE_STRPTIME #endif // broken strptime() +#if defined(__MWERKS__) && wxUSE_UNICODE + #include +#endif + #if !defined(WX_TIMEZONE) && !defined(WX_GMTOFF_IN_TM) #if defined(__BORLANDC__) || defined(__MINGW32__) || defined(__VISAGECPP__) #define WX_TIMEZONE _timezone @@ -3524,7 +3530,8 @@ const wxChar *wxDateTime::ParseTime(const wxChar *time) size_t len = timeString.length(); if ( timeString.CmpNoCase(wxString(time, len)) == 0 ) { - Set(stdTimes[n].hour, 0, 0); + // casts required by DigitalMars + Set(stdTimes[n].hour, wxDateTime_t(0), wxDateTime_t(0)); return time + len; }