]> git.saurik.com Git - wxWidgets.git/commitdiff
merged in rev 1.28 of wx/datetime.inl: copy milliseconds in Set() too
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 May 2005 12:39:15 +0000 (12:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 13 May 2005 12:39:15 +0000 (12:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/datetime.h

index 0198f242e7354464526ba30cd4eb8d605cec16c1..dec975265ed7aa03409dcd89740d02c3b0d7d172 100644 (file)
@@ -1583,7 +1583,8 @@ inline wxDateTime& wxDateTime::Set(const Tm& tm)
 {
     wxASSERT_MSG( tm.IsValid(), _T("invalid broken down date/time") );
 
-    return Set(tm.mday, (Month)tm.mon, tm.year, tm.hour, tm.min, tm.sec);
+    return Set(tm.mday, (Month)tm.mon, tm.year,
+               tm.hour, tm.min, tm.sec, tm.msec);
 }
 
 inline wxDateTime::wxDateTime(wxDateTime_t hour,