diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index ead9474e79..ec9d934fb8 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1305,6 +1305,7 @@ wxDateTime& wxDateTime::ResetTime() wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt) { struct tm tm; + InitTm(tm); long year = ddt & 0xFE000000; year >>= 25;