]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 859194 ] wxDateTime::SetFromDOS gives unpredictable results
authorJulian Smart <julian@anthemion.co.uk>
Sat, 13 Dec 2003 10:28:29 +0000 (10:28 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 13 Dec 2003 10:28:29 +0000 (10:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index 7ea7a574e3aaa6350c087e63631c76daf56e2670..9c14cc43db07e0f51dca7e3d9af7db60f48f9577 100644 (file)
@@ -1326,6 +1326,7 @@ wxDateTime& wxDateTime::ResetTime()
 wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt)
 {
     struct tm tm;
 wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt)
 {
     struct tm tm;
+    InitTm(tm);
 
     long year = ddt & 0xFE000000;
     year >>= 25;
 
     long year = ddt & 0xFE000000;
     year >>= 25;