]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
switched to using wxPopupWindow
[wxWidgets.git] / include / wx / datetime.h
index bf85baa01bf6e60ccdc3641bd8bd3d6a9c740d26..c40a90ee8c58508597a03f499e541c3775dc6279 100644 (file)
@@ -1400,12 +1400,10 @@ inline wxDateTime wxDateTime::Now()
 /* static */
 inline wxDateTime wxDateTime::Today()
 {
-    struct tm *time = GetTmNow();
-    time->tm_hour = 0;
-    time->tm_min = 0;
-    time->tm_sec = 0;
+    wxDateTime dt(Now());
+    dt.ResetTime();
 
-    return wxDateTime(*time);
+    return dt;
 }
 
 #if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))