git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31524
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/* static */
inline wxDateTime wxDateTime::Today()
{
/* 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);
}
#if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))
}
#if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))