]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
fixed bug recently introduced in wxSortedArray::Index()
[wxWidgets.git] / src / common / datetime.cpp
index d796e6e12743cb498ad38cfd90c4ccc80993cfc4..7ff53bacf56e6ddaf64207e2bf2ce0cab2b73bca 100644 (file)
@@ -82,6 +82,8 @@
 #include "wx/datetime.h"
 #include "wx/timer.h"           // for wxGetLocalTimeMillis()
 
+const long wxDateTime::TIME_T_FACTOR = 1000l;
+
 // ----------------------------------------------------------------------------
 // conditional compilation
 // ----------------------------------------------------------------------------
@@ -3528,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;
         }