From: Julian Smart Date: Sat, 13 Dec 2003 10:28:29 +0000 (+0000) Subject: Applied patch [ 859194 ] wxDateTime::SetFromDOS gives unpredictable results X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4739346e195beb4676c281003fcf75878185023e Applied patch [ 859194 ] wxDateTime::SetFromDOS gives unpredictable results git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 7ea7a574e3..9c14cc43db 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1326,6 +1326,7 @@ wxDateTime& wxDateTime::ResetTime() wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt) { struct tm tm; + InitTm(tm); long year = ddt & 0xFE000000; year >>= 25;