]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
Don't use default "Error" title for wxMessageOutputBest message box.
[wxWidgets.git] / src / common / datetime.cpp
index eecee09de4bf42f9a70cd2997aabbb82cbc66a03..4e0ea0fa695c62d92b6b2255bec838dbc48e6c70 100644 (file)
@@ -1616,6 +1616,7 @@ wxDateTime::Tm wxDateTime::GetTm(const TimeZone& tz) const
     // construct Tm from these values
     Tm tm;
     tm.year = (int)year;
+    tm.yday = (wxDateTime_t)(dayOfYear - 1); // use C convention for day number
     tm.mon = (Month)(month - 1); // algorithm yields 1 for January, not 0
     tm.mday = (wxDateTime_t)day;
     tm.msec = (wxDateTime_t)(timeOnly % 1000);